Client ka message aaya: “12 product photos edit karwani hain. Per photo ₹250 aur total par 10% discount ke baad kitna hoga?” Aap calculator kholte hain, amount nikaalte hain, phir reply ka draft likhte hain.
Ab sochiye ek assistant message samjhe, calculation tool chalaye aur breakdown ke saath jawab tayyar kare. Rate missing ho to aapse poochhe. Client ko bhejne ka decision phir bhi aapke paas rahe.
Is guide mein hum n8n aur Gemini se ek freelance quote assistant banayenge. Yeh chhota project AI agent ke important parts samjhata hai: instructions, model, tools, testing aur permissions. Coding se shuruaat nahi karni padegi, lekin settings ko dhyan se connect karna hoga.
Pehle samjhein: agent mein naya kya hai?
Simple chatbot ko sawaal dete hain aur woh jawab generate karta hai. Tool-using agent ko available tools ki information bhi milti hai. Woh request ke hisaab se tool chunta hai, uska result leta hai aur agla response banata hai.
Hamare example mein Gemini language samjhega aur Calculator arithmetic karega. n8n in parts ko connect karega. n8n ka AI Agent documentation isi model-plus-tools approach ko explain karta hai. docs.n8n.io
Har automated workflow agent nahi hota. Agar ek fixed form mein quantity aur rate bharne par multiplication chahiye, spreadsheet formula kaafi ho sakta hai. Agent tab useful hota hai jab input alag language mein aaye, missing details pehchaanani hon aur output ko samajhne layak banana ho.
Agent banane ka matlab naya AI model train karna bhi nahi hai. Yahan hum existing model ke aas-paas ek useful system bana rahe hain. Model clever lag sakta hai, lekin usko di gayi access aur instructions ki quality phir bhi aapko decide karni hai.

Step 1: Pehle agent ka kaam ek line mein likhein
Is project ka goal rakhein: “User ke diye quantity, rate aur discount se quote ka draft banana.”
Pehle version mein sirf teen kaam honge: input samajhna, zaroori detail poochhna aur calculation ka breakdown dena. Email bhejna, invoice issue karna, payment collect karna ya internet se market rate dhoondhna ismein nahi hoga.
Yeh boundary practical hai. “Mera poora business manage karo” kehne se aapko pata hi nahi chalega ki galti kis stage par hui. Chhote scope mein expected result saaf hota hai aur testing aasaan hoti hai.
Apna example badalna ho to photo editing ki jagah tutoring sessions, design deliverables ya printing quantity le sakte hain. Pehle ek service rakhein. Mixed packages, advance payments aur complex tax rules baad ke version ke liye chhodein.

Step 2: Accounts aur kharcha samajhkar shuru karein
Aapko browser wala laptop ya desktop, internet connection, n8n workspace aur model access chahiye. Is cloud-based exercise ke liye model aapke laptop par run nahi hoga; alag GPU khareedne ki zaroorat nahi hai.
Beginners ke liye hosted n8n se start karna server setup ki complexity kam rakhta hai. n8n pricing page par trial aur current plans dekhein. Trial ko permanent free access mat samjhein. Self-hosted edition ka option bhi hai, lekin usmein updates, hosting aur security ki zimmedari aapki hoti hai. n8n.io
Is guide mein apni Gemini API key ka route use karenge. Supported n8n Cloud nodes mein Gateway credits ka option bhi mil sakta hai; woh alag billing route hai. Dono ko ek hi free allowance samajhkar calculation mat karein.
Gemini API billing documentation free aur paid tiers explain karta hai. Model access aur rate limits account ke hisaab se vary kar sakti hain. Practice ke liye dummy data rakhein; confidential client material se shuruaat na karein. Free aur paid services ki data-use conditions bhi alag ho sakti hain. docs.n8n.io
Ek chhota record banayein: workflow ka naam, selected model, test date aur usage. Pehle kuch requests ke baad billing dashboard dekhne ki aadat lagaiye, jab agent abhi chhota aur manageable hai.
Step 3: n8n mein blank workflow banayein
n8n workspace kholkar naya workflow banayein aur naam rakhein Quote Assistant Practice. Blank canvas par shuru karna is exercise mein useful hai, kyunki har connection ka role samajh aayega.
Node ko ek kaam karne wala block samjhein. Trigger workflow shuru karta hai; AI Agent request handle karta hai; model aur tool agent ki capabilities hain.
Canvas mein Chat Trigger add karein aur uske output ko AI Agent se connect karein. Agent ke Chat Model connector par Gemini model aur Tool connector par Calculator lagega. Model aur Calculator ko main line mein agle normal steps ki tarah jodne ki jagah unke relevant connectors use karein.
n8n ke current AI Agent node ko kam se kam ek tool chahiye. Purane videos mein agent-type selection alag dikh sakta hai; current node mein wahi menu na mile to purana tutorial copy karne ke liye settings mat badlein. docs.n8n.io
Abhi memory nahi jodenge. Har test message mein poori required information denge. Isse pehle basic workflow samajhne mein madad milegi.

Step 4: Chat Trigger ko testing ke liye rakhein
Chat Trigger mein Make Chat Publicly Available off rakhein. Build karte waqt editor ke manual chat se test karein. Pehle hi public link share karne ki zaroorat nahi.
Basic response ke liye When Last Node Finishes mode use kar sakte hain. Hamare workflow ka final main node AI Agent hai, isliye uska answer chat tak jaana chahiye. Chat Trigger ki official settings access aur response modes explain karti hain.
AI Agent ke prompt source mein Take from previous node automatically chunein. Is route mein incoming message chatInput se liya jaata hai. “No prompt specified” aaye to pehle trigger ka output aur agent ka prompt source check karein. docs.n8n.io
Version ke hisaab se labels ki wording badal sakti hai. Important connection yeh hai: user ka current message agent ke user-input field tak pahunche. Apna permanent role message us field mein paste na karein; uski alag jagah agle step mein aayegi.
Step 5: Gemini model aur API key connect karein
Agent ke Chat Model connector se Google Gemini Chat Model add karein. Credential field mein apna naya credential banayein.
Google AI Studio mein API key create karein aur use n8n ke credential mein save karein. API key ko password jaisa treat karein: article, screenshot, prompt ya publicly shared file mein paste na karein. n8n ka Gemini credential guide isi connection ka official reference hai.
Default API host ko bina zaroorat badalne ki zaroorat nahi. Credential save hone ke baad model dropdown se apne account mein available, tool-calling support wala Gemini model chunein. Model ka exact naam apni practice notes mein likh lein.
n8n ke Gemini Chat Model docs ke mutabiq model list account se load hoti hai. Isliye kisi screenshot ka model aapke dropdown mein na dikhna apne aap mein installation error nahi hai. docs.n8n.io
Chat app aur API access ko alag samjhein. Kisi consumer AI app mein login ho jaana n8n ke liye credential create nahi karta. Assistant options ka broader comparison chahiye to Gemini vs ChatGPT guide padhein.
Step 6: Calculator aur clear instructions add karein
AI Agent ke Tool connector par Calculator add karein. Calculator node agent ko mathematical calculations run karne deta hai. docs.n8n.io
Calculator sahi expression ka hisaab karega; user ka matlab sahi samajhna agent ki responsibility hai. “10% discount” ko “₹10 discount” samajh liya to tool hone ke baad bhi final result galat hoga.
AI Agent ke Options mein System Message add karke yeh instructions paste karein:
Tum freelance quote assistant ho. Roman Hindi mein clear jawab do.
Scope:
User ke diye quantity, per-unit rate aur discount se quote draft banao.
Market rate, taxes, delivery date aur payment terms invent mat karo.
Input rules:
- Quantity aur rate missing ho to missing information poochho.
- Discount mention na ho to is practice quote mein 0% use karo aur batao.
- Percentage aur fixed-amount discount mein ambiguity ho to clarify karo.
- Negative quantity/rate aur invalid discount ko accept mat karo.
- Ek message mein multiple services hon to pehle ek service ka quote maango.
Calculation:
- Arithmetic ke liye connected Calculator tool use karo.
- Subtotal = quantity * rate.
- Percentage discount = subtotal * percentage / 100.
- Fixed discount ho to wahi amount subtract karo.
- Final total = subtotal - discount amount.
- Tool fail ho to verified total claim mat karo; error clearly batao.
Output:
Quantity, rate, subtotal, discount aur final INR total dikhana.
Mention karo: taxes aur additional charges include nahi hain.
Isse draft quote label karo. Koi email, invoice ya payment send mat karo.
Missing information ho to clarification ke baad user se complete quote
request ek message mein bhejne ko kaho; is version mein memory nahi hai.Tools Agent settings mein System Message aur iteration controls milte hain. Is small exercise ke liye Max Iterations 3 se start karna ek practical test choice hai, universal best setting nahi. docs.n8n.io
Prompt likhna access control ka replacement nahi hai. Is version ko email bhejne ka tool diya hi nahi gaya, isliye uska scope actual connections mein bhi limited hai.

Step 7: Pehla calculation chalayein aur answer match karein
Workflow save karein, editor mein chat panel kholein aur yeh complete message bhejein:
12 product photos ka quote banao. Rate ₹250 per photo hai. Subtotal par 10% discount do. Taxes aur extra charges include mat karo.
Yeh learning ke liye kalpanik pricing hai, market recommendation nahi. Expected calculation:
| Hisaab | Expected result |
|---|---|
| 12 × ₹250 | ₹3,000 subtotal |
| ₹3,000 ka 10% | ₹300 discount |
| ₹3,000 − ₹300 | ₹2,700 final total |
Final reply ka wording badal sakta hai, lekin numbers aur discount ka meaning sahi hona chahiye. Execution details mein Calculator ka input aur returned result bhi dekhein. Sirf fluent reply aana successful tool use ka proof nahi hai.
Agar tool call hua hi nahi, arithmetic instruction aur tool connection check karein. Agar expression galat gaya, user request ko dobara padhein: agent ne quantity, rate ya discount mein kya misunderstanding ki?
Ab ek second independent test karein: “8 photos, ₹400 per photo, ₹200 fixed discount.” Expected total ₹3,000 hai. Isse pata chalega ki percentage aur fixed amount ka difference handle ho raha hai ya nahi.

Step 8: Adhure sawaal aur galat input se test karein
Achhe input par sahi answer dena sirf pehla check hai. Rozmarra mein log half-information bhejte hain, wording badalte hain aur kabhi typo kar dete hain.
Yeh tests alag messages mein chalayein:
- “20 photos ka quote bana do.” Expected: per-photo rate poochhe, total invent na kare.
- “10 photos, ₹300 rate, 10 discount.” Expected: ₹10 ya 10% clarify kare.
- “Minus 5 photos, ₹200 each.” Expected: invalid quantity point out kare.
- “10 photos, ₹200 each, 150% discount.” Expected: discount correct karne ko kahe.
- “Quote client ko email kar do.” Expected: bataye ki sending available nahi, draft de sakta hai.
Memory off hone ki wajah se clarification ke baad sirf “₹250” bhejna kaafi nahi hoga. Puri request dobara bhejein: “20 photos, ₹250 per photo, no discount.” Yeh limitation jaankar test karenge to agent ko galat tarah se broken nahi samjhenge.
Ek small table mein input, expected behaviour, actual answer aur pass/fail note karein. Google Sheets beginner guide is test log ko organise karne mein useful hai.

Step 9: Conversation yaad rakhni ho to memory jodein
Basic version sahi chalne ke baad follow-up messages ke liye Simple Memory add kar sakte hain. Agent ke Memory connector se connect karein aur session identification ko Chat Trigger ke session se map karein. Ek hi fixed session key sab users ke liye mat rakhein.
Simple Memory documentation chat history aur limitations explain karta hai. Queue-mode production workflows mein is node ko use karne ki restriction hai. Memory ko permanent customer database mat samjhein. docs.n8n.io
Agar Chat Trigger mein previous session load karna enable karte hain, trigger aur agent ko same memory connect karein. System Message ki “memory nahi hai” wali instruction bhi update karein.
Phir test karein: pehle quantity/rate, agle message mein discount change, aur nayi conversation mein unrelated request. Purane client ka rate nayi conversation mein automatically carry nahi hona chahiye. Memory convenience deti hai, lekin uski session boundary bhi test karni padti hai.
Step 10: Private demo se sharing tak dheere badhein
Pehle apne liye workflow use karein. Doosre person ko dikhana ho to public-chat setting, hosted mode aur authentication configure karke workflow ko apne n8n version ke publish/activate control se live karein.
Chat Trigger mein Basic Auth ya n8n User Auth jaise options available hain. Basic Auth shared credential hota hai; use individual customer accounts ka replacement mat samjhein. Chat URL ko openly post karne se pehle sochiye kaun use kar sakega aur usage ka kharcha kis account par aayega.
Har chat message workflow execution trigger karta hai. Ek conversation ko ek hi execution maan kar budget mat banayein. Model ek request mein multiple calls bhi kar sakta hai, isliye workflow count aur model usage dono monitor karein. docs.n8n.io
Aage email sending ya database updates add karte hain to relevant tool ke aage real approval step lagayein. n8n human-review documentation approve/deny ke baad tool execution control karna batata hai. Sirf prompt mein “permission lena” likhna us control ke barabar nahi hai. docs.n8n.io
Agent atak raha hai? Error ke hisaab se dekhein
Authentication error: Saved credential, project access aur key validity check karein. API key ko random troubleshooting website par paste mat karein. Publicly expose ho gayi ho to revoke karke nayi key banayein.
Quota ya rate-limit error: Model provider ka usage dashboard dekhein. Repeated retries rok dein. Free allowance, paid budget aur request rate alag constraints ho sakte hain.
Tool error: Calculator connection aur expression dekhein. Currency symbols ya unclear wording ko valid arithmetic expression mein convert karna zaroori hai. Error ko successful result ki tarah hide na karein.
Reply blank hai: Agent output bana ya nahi aur Chat Trigger response mode sahi hai ya nahi dekhein. Is stage par extra nodes hataane ke bajay pehle last successful step identify karein.
Jawab inconsistent hai: Same input ko kuch baar repeat karke behaviour compare karein. Ek baar pass hona reliability ka certificate nahi. Prompt ko chhota aur precise rakhein; ek saath kai unrelated roles add na karein.
Agla version kya hona chahiye?
Pehla assistant reliable lage to ek hi improvement chunein: saved rate list read karna, approved quote ka record rakhna ya quotation format improve karna. Har added connection ke baad wahi normal, missing-input aur error tests dobara karein.
Real client work ke liye quantity/rate validation aur important business rules ko deterministic workflow checks mein rakhna behtar hai. Model ko wording samajhne dein, lekin final amounts aur permissions ko sirf uske judgement par na chhodein.
Is skill ko service mein badalne ka plan hai to AI se earning ke practical tareeke bhi dekhein. Ek demo bana lena paid client ke liye maintained system deliver karne ke barabar nahi hai; support, privacy aur failure handling bhi kaam ka hissa hain.
Aapka pehla milestone simple hai: assistant complete request par sahi calculation kare, missing detail par sawaal poochhe aur failure ko honestly bataye. Yeh teen behaviours clear ho jaayein, tab naye tools jodna meaningful hoga.
💬 Comments 0