How to Build Your First AI Agent (No-Code & Code)
Build your first AI agent in an afternoon — a no-code path with n8n, and a Python code example. India-first, beginner-friendly.
Build your first AI agent in an afternoon — a no-code path with n8n, and a Python code example. India-first, beginner-friendly.
एक दोपहर में अपना पहला AI agent बनाएँ — n8n के साथ एक no-code रास्ता, और एक Python code उदाहरण।
AI agent बनाना डरावना लगता है, पर 2026 में यह वास्तव में एक weekend project है।
Step 1: अपना प्लेटफॉर्म चुनें
n8n पर एक मुफ्त account बनाएँ (self-host मुफ्त)। भारत में लोकप्रिय क्योंकि आप एक सस्ते ₹400/माह VPS पर self-host कर सकते हैं।
Step 2: एक trigger जोड़ें
एक 'Chat' या 'Webhook' trigger इस्तेमाल करें।
Step 3: LLM node जोड़ें
एक AI node डालें और system prompt लिखें।
Step 4: एक tool जोड़ें
एक tool node connect करें।
Step 5: टेस्ट और deploy करें
एक टेस्ट संदेश भेजें, फिर workflow on करें।
# A minimal AI agent: the LLM decides when to call a tool.
def get_city_weather(city: str) -> str:
# In real life, call a weather API here.
fake_db = {"mumbai": "31C, humid", "delhi": "38C, dry"}
return fake_db.get(city.lower(), "No data")
tools = [{"name": "get_city_weather", "description": "Get weather for an Indian city", "parameters": {"city": "string"}}]
def run_agent(user_message):
decision = call_llm(user_message, tools) # LLM returns text OR a tool call
if decision.get("tool") == "get_city_weather":
result = get_city_weather(decision["args"]["city"])
return call_llm(f"Tool result: {result}. Answer the user.")
return decision["text"]
print(run_agent("What's the weather in Mumbai?"))मुख्य विचार: LLM खुद tool नहीं चलाता। यह function चलाने के लिए कहता है, आपका code उसे चलाता है, और आप परिणाम वापस feed करते हैं।
| कारक | No-code (n8n/Make) | Code (Python) |
|---|---|---|
| Setup समय | मिनट | एक घंटा+ |
| आवश्यक skill | कोई नहीं | बेसिक Python |
| लचीलापन | Nodes तक सीमित | असीमित |
| शुरू करने की लागत | मुफ्त-₹400/माह VPS | मुफ्त (आपका लैपटॉप) |
सीखने के लिए हाँ। Self-hosted n8n मुफ्त है, LLM APIs starter credits देते हैं।
शुरू करने के लिए नहीं। n8n जैसे no-code tools शून्य code के साथ काम करते हैं।
n8n से शुरू करें — इसका visual flow agent loop को समझना आसान बनाता है।
Save this summary as an image or share it.
AICreatorHub Team
Hands-on AI practitioners covering tools, models and news for India.