يعمل سير العمل هذا على إنشاء وكيل ذكاء اصطناعي ذكي يمكنه الدردشة وإجراء العمليات الحسابية والبحث عن المعلومات على ويكيبيديا
Bismillah! Welcome, future AI automation expert from Morocco!
Here is the complete breakdown of all the tools and platforms needed to build the AI Agent workflow you submitted. My job is to make this crystal clear for you, so you know exactly what you need, how much it will cost in Dirhams, and how to get started.
Yallah, let's begin!
### 🤖 : Workflow Tool Inventory
This workflow creates a smart AI Agent that can chat, perform calculations, and look up information on Wikipedia. It's a fantastic starting point for building powerful AI assistants.
---
### 📊 Summary of Required Tools
Here's a quick overview of everything you'll need. We'll go into detail on each one below.
| Tool | Purpose in Workflow | Est. Monthly Cost (MAD) | Setup Difficulty | Required? |
| :--- | :--- | :--- | :--- | :--- |
| **n8n Cloud** | The platform to build and run the automation | 220 - 550+ | Easy | ✅ Yes - Critical |
| **OpenAI API** | The AI model (the "brain") for the agent | 5 - 50+ (Pay-as-you-go) | Medium | ✅ Yes - Critical |
| **Wikipedia API** | A free source of general knowledge | 0 | Easy | 👍 Yes - Recommended |
---
### 🛠️ Detailed Tool Breakdown
Let's dive into each tool one by one.
#### 1. n8n (The Automation Platform)
* **What It Does:** n8n is a powerful "low-code" platform that lets you connect different apps and services to create automated workflows, just like the one you're building. It's the engine for our entire project.
* **Used For in this Workflow:** To host, design, and execute the entire AI agent. The "AI Agent", "Chat Trigger", "Memory", and "Calculator" nodes are all part of the n8n platform.
* **💰 Cost Analysis (MAD):**
* **Setup Cost:** 0 MAD.
* **n8n Cloud (Recommended):**
* **Starter Plan:** ~€20/month (**~220 MAD/month**). Good for starting out and learning.
* **Pro Plan:** ~€50/month (**~550 MAD/month**). For more complex, business-critical workflows.
* **Self-Hosting (Advanced):** You can install n8n on your own server (e.g., from OVH or DigitalOcean) for **~60-120 MAD/month**, but this requires technical skills.
* **⚙️ Setup Difficulty:**
* **Cloud:** **Easy** (5-10 minutes). Just sign up and you're ready to go.
* **Self-Hosting:** **Hard** (1-2 hours). Requires knowledge of servers, Docker, and command lines.
* **❓ Is it Required?** **✅ Yes - Critical**. This is the foundation of your entire workflow. Without it, you can't build or run anything.
* **🔄 Alternatives:**
* **Make.com:** Very visual and user-friendly, but can become expensive as your usage grows.
* **Zapier:** The simplest to use, but also the most expensive for multi-step workflows like this one.
* **🇲🇦 Moroccan Availability:** ✅ **Excellent**
* Works perfectly in Morocco. No VPN needed.
* Accepts Moroccan international credit/debit cards (e.g., CIH e-shopping, Attijari, etc.) for its cloud plans.
#### 2. OpenAI API (The AI Brain)
* **What It Does:** OpenAI provides access to powerful Large Language Models (LLMs) like GPT-4 and GPT-4o mini. These are the AI models that can understand language, reason, and generate responses.
* **Used For in this Workflow:** The `lmChatOpenAi` node uses the `gpt-4o-mini` model to act as the central "brain" of the agent. It understands your questions and decides whether to use the Calculator, Wikipedia, or just answer directly.
* **💰 Cost Analysis (MAD):** (Based on `gpt-4o-mini` model)
* **Setup Cost:** You need to add credits to your account. The minimum is usually $5 (**~50 MAD**).
* **Monthly Cost:** This is a **pay-as-you-go** service. You only pay for what you use.
* **Input Tokens:** ~$0.15 per 1 million tokens (**~1.50 MAD**).
* **Output Tokens:** ~$0.60 per 1 million tokens (**~6.00 MAD**).
* **Example:** A typical agent conversation might use 3,000 tokens. The cost for this would be less than **0.05 MAD**! It is extremely cheap for this model.
* **⚙️ Setup Difficulty:** **Medium** (15-30 minutes). You need to:
1. Create an OpenAI account.
2. Go to the API section.
3. Set up billing with a credit card.
4. Generate a secret API key.
* **❓ Is it Required?** **✅ Yes - Critical**. The agent has no intelligence without an LLM like this.
* **🔄 Alternatives:**
* **Anthropic (Claude API):** Known for excellent writing and reasoning skills. Similar pricing and setup.
* **Google (Gemini API):** Great integration with the Google ecosystem. Offers a generous free tier to get started.
* **🇲🇦 Moroccan Availability:** ✅ **Good**
* The service works great in Morocco.
* **Payment:** You **must** use an international Moroccan credit/debit card.
* **Verification:** Sometimes, they require phone verification from a supported country. If a Moroccan number doesn't work, you may need a service for a temporary number (use with caution).
#### 3. Wikipedia API (The Knowledge Source)
* **What It Does:** This provides programmatic access to all the articles on Wikipedia, the free online encyclopedia.
* **Used For in this Workflow:** The `Wikipedia` tool node allows the AI Agent to look up facts, figures, and information about specific topics when it doesn't know the answer. For example, if you ask "Who is Ibn Battuta?", the agent will use this tool.
* **💰 Cost Analysis (MAD):**
* **Setup Cost:** 0 MAD.
* **Monthly Cost:** **0 MAD**. It is completely free to use.
* **⚙️ Setup Difficulty:** **Easy** (0 minutes). The node is built into n8n. There is no account to create or API key to get. It just works!
* **❓ Is it Required?** **👍 Yes - Recommended**. While not strictly critical for the agent to *run*, it is essential for the agent to be *useful* and answer questions about the world.
* **🔄 Alternatives:**
* **DuckDuckGo Search API:** A free tool in n8n that allows the agent to perform a general web search. Less structured than Wikipedia but covers more topics.
* **Google Custom Search API:** More powerful and customizable, but it's a paid service and more complex to set up.
* **🇲🇦 Moroccan Availability:** ✅ **Excellent**
* Fully accessible from Morocco without any issues.
---
### 💸 TOTAL COST BREAKDOWN
Let's estimate your total monthly costs in Moroccan Dirhams.
* **One-Time Setup Costs:**
* Initial OpenAI API credit: **~50 MAD**
* **Monthly Fixed Costs:**
* n8n Cloud "Starter" Plan: **~220 MAD**
* **Variable "Per-Execution" Costs:**
* OpenAI API Usage: **~0.05 MAD per conversation** (this is an estimate)
#### Monthly Projections (Example)
| Usage Volume | n8n Cloud Cost | Estimated OpenAI Cost | **Estimated Total Monthly Cost (MAD)** |
| :--- | :--- | :--- | :--- |
| **Low** (100 conversations/month) | 220 MAD | ~5 MAD | **~225 MAD** |
| **Medium** (500 conversations/month) | 220 MAD | ~25 MAD | **~245 MAD** |
| **High** (1,000 conversations/month) | 220 MAD | ~50 MAD | **~270 MAD** |
**Conclusion:** Your main cost is the n8n platform itself. The AI model (`gpt-4o-mini`) is very powerful and incredibly affordable for most use cases.
---
### 📈 TOOL STATISTICS
* **Total Tools Identified:** 3
* **Free vs. Paid:** 1 Free (Wikipedia), 2 Paid (n8n, OpenAI)
* **Most Expensive (Fixed Cost):** n8n Cloud
* **Most Complex to Set Up:** OpenAI API (due to billing and API keys)
---
### ⚠️ POTENTIAL CHALLENGES FOR MOROCCAN USERS
1. **International Payments:** The biggest challenge is always payment. For n8n Cloud and OpenAI, you **need** a Moroccan bank card that is enabled for international online payments (a "dotation e-commerce"). Contact your bank (CIH, Attijariwafa, BMCE, etc.) to ensure this is active.
2. **OpenAI Verification:** As mentioned, OpenAI might ask for a phone number from a specific country for verification. This is becoming less common, but if it happens, it can be a frustrating hurdle.
---
### 🧭 RECOMMENDATIONS & PATHS
Choose the path that best fits your goals and budget.
* **Budget Path (DIY Hobbyist 🛠️):**
* **Setup:** Self-host n8n on a cheap VPS (**~60 MAD/month**) + OpenAI API (**pay-as-you-go**).
* **Best for:** Students and hobbyists who are comfortable with technology and want to learn while saving money.
* **Standard Business Path (Freelancer/SME 💼):**
* **Setup:** n8n Cloud Starter Plan (**~220 MAD/month**) + OpenAI API (**pay-as-you-go**).
* **Best for:** The majority of users. It's reliable, secure, and lets you focus on building great workflows instead of managing servers.
* **Premium Path (Agency/High Volume 🚀):**
* **Setup:** n8n Cloud Pro Plan (**~550 MAD/month**) + OpenAI API (or another model like Anthropic's Claude 3).
* **Best for:** Businesses that will run many workflows or have high-volume needs, requiring more advanced features and support.
---
### ✅ NEXT STEPS
1. **Activate Your Card:** Call your bank and make sure your "dotation e-commerce" is active for your bank card.
2. **Sign Up for n8n Cloud:** Create an account on the n8n website. This is your first and most important step.
3. **Sign Up for OpenAI:** Create an account on the OpenAI platform, add your billing information, and get your API key.
4. **Build & Connect:** Follow the tutorials to build this workflow in your n8n account and add your OpenAI API key to the credentials.
Good luck! You have everything you need to start building. Don't hesitate to experiment and ask questions. This is how you learn and grow. Mabrouk
18:41
18
12 comments
Youness Taza
4
يعمل سير العمل هذا على إنشاء وكيل ذكاء اصطناعي ذكي يمكنه الدردشة وإجراء العمليات الحسابية والبحث عن المعلومات على ويكيبيديا
ARABIC AI AGENTS ACADEMY
skool.com/arabic-ai-agents-academy
🚀 أكاديمية الذكاء الاصطناعي والأتمتة
هنا تتعلم كيف تحوّل الذكاء الاصطناعي إلى فريق عمل يعمل من أجلك 24/7.
Leaderboard (30-day)
Powered by