# Caption Maker (n8n: Form + Gemini + Google Sheet) > Ek form mein topic aur tone daalo, Gemini teen Hinglish captions hashtags ke saath likhe aur Google Sheet mein save: starter workflow + prompt Free guide by bloopcommits (@bloopcommits) · https://bloopcommits.pages.dev/caption/ Reel ready hai par caption pe atak gaye? Is guide mein ek chhota n8n workflow hai: n8n ka apna form khulta hai, usmein topic aur tone bharte ho, Gemini teen Hinglish captions hashtags ke saath likhta hai, aur sab Google Sheet ki ek nayi row mein save ho jaata hai. Caption tum copy karke khud post karte ho: Instagram par auto-post is workflow mein nahi hai (wajah neeche). > **Ye workflow kya karta hai** > > - Form Trigger n8n ka hosted form page banata hai: Topic aur Tone fields (starter mein Tone ek dropdown hai). > - Basic LLM Chain "Define below" prompt ke saath topic aur tone se teen captions likhta hai (prompt neeche hai). > - Google Gemini Chat Model sub-node chain se juda hai: wahi captions likhta hai. Credential = Google AI Studio ki API key. > - Google Sheets (Append Row) Date, Topic, Tone aur Captions ek nayi row mein save karta hai. > - Humne ye workflow kisi account par chalaya nahi hai: ye starter hai. Credentials tum jodoge, ek test se check karoge, phir publish karoge. ![n8n ke official preview mein poora workflow: Caption Form > Write Captions > Gemini Model > Save Captions](https://bloopcommits.pages.dev/caption/workflow.png) _Poora workflow, n8n ke official preview mein (workflow hamara, screen n8n ka)._ Reel mein jo topic ("Mera pehla Power BI dashboard") aur teen captions dikhe, wo banaya hua example hai: model ka asli output nahi, aur kisi reach ya follower ka koi vaada nahi. ## Node by node (n8n ke official docs ke hisaab se) | Node (canvas par naam) | n8n node | Kya karta hai | Tumhe kya set karna hai | | --- | --- | --- | --- | | Caption Form | Form Trigger | Docs: jab koi form submit kare to workflow shuru; n8n form page khud banata hai. Form Title, Form Description, Field Label, Element Type (Dropdown, Email, Date ...), Required Field. | Topic (text) aur Tone (dropdown: Funny, Serious, Desi dost) fields. Respond When = Form Is Submitted. | | Write Captions | Basic LLM Chain | Docs: prompt "Define below" mein likhte ho; jawab "text" field mein aata hai. | Neeche wala prompt paste karo; chaho to badlo. | | Gemini Model | Google Gemini Chat Model (sub-node) | Chain ke Model port se juda round node. Docs: model list tumhare account ke hisaab se load hoti hai. | Credential: Google Gemini(PaLM) API (key AI Studio se). Model dropdown se koi bhi chat model chuno. | | Save Captions | Google Sheets > Append Row | Docs: "Append Row: Create a new row." Mapping Column Mode: Map Automatically, Map Each Column Manually ya Nothing. | Document aur Sheet chuno; columns Date, Topic, Tone, Captions manually map (starter mein ho chuka hai). | ## Prompt (humne apne design se likha hai) **Write Captions node: Prompt (User Message), Define below** ``` You write 3 Instagram captions for a Reel in simple Hinglish (Roman script). Topic: {{ $json.Topic }} Tone: {{ $json.Tone }} Each caption: one strong first line, one or two short lines, then exactly 5 relevant hashtags. Number them 1, 2, 3. Never promise reach, followers or results. ``` Ye prompt hamari design hai, run karke nahi dekha. Output ki quality model aur tumhare topic par depend karti hai: ek-do baar test karke dekho aur prompt apne style ke hisaab se badlo. ## Kya chahiye - n8n: apne server par self-host (Community Edition) ya n8n Cloud (free trial). Form tabhi chalega jab workflow publish ho (neeche). - Google AI Studio ki Gemini API key (free quota ke terms neeche padho). - Ek Google Sheet jisme pehli row mein columns hon: Date, Topic, Tone, Captions, aur Sheet ka naam "Captions". - n8n ka form URL (Production URL) jo tum khud open karoge. ## Gemini API key jodna (n8n docs ke hisaab se) 1. n8n ke docs ke hisaab se Google AI Studio ke API Key page par jao (aistudio.google.com/apikey) aur "Create API Key" dabao. 2. Key copy karo. n8n mein Credentials > Add > "Google Gemini(PaLM) Api" chuno, key paste karo, save karo. 3. Gemini Model node kholo, ye credential chuno, model dropdown se ek chat model chuno. 4. Key kisi ko mat bhejo, screenshot mein mat dikhao. Leak ho jaye to AI Studio se delete karke nayi banao. ## Form ka URL: Test vs Production (n8n docs ke hisaab se) - Test URL: jab tum editor mein Execute Step ya Execute Workflow dabate ho (workflow active na ho to), tab chalta hai; data editor mein dikhta hai, debugging ke liye. - Production URL: "when you publish the workflow". Workflow ko save aur publish karna zaroori hai, tabhi ye URL kaam karta hai. Is URL ko bookmark kar lo. ## Step by step 1. n8n kholo (Cloud trial ya apna self-host) aur ek naya workflow banao. 2. Neeche wala starter workflow Import from File se laao (download button upar hai), ya JSON copy karke canvas par paste karo. 3. Sheet banao (Date, Topic, Tone, Captions). Save Captions node mein apna Google Sheets credential, Document aur Sheet chuno. 4. Write Captions mein prompt dekho; Gemini Model mein apna credential aur ek model chuno. 5. Caption Form node ka Test URL kholo, Topic aur Tone bharo, submit karo; dekho teen captions bane aur Sheet mein row aayi. 6. Sab theek lage to Save aur Publish karo, phir Production URL se form use karo. [Workflow file download karo](https://bloopcommits.pages.dev/caption/bloopcommits-caption-workflow.json) - .json file · n8n mein Import from File · download na ho to neeche Copy dabao **starter workflow: n8n mein Import from File / paste karo, Document / Sheet khud chuno, credentials khud jodo, ek test se check karo** ``` { "name": "Caption Maker Starter", "nodes": [ {"id": "1", "name": "Caption Form", "type": "n8n-nodes-base.formTrigger", "typeVersion": 2.2, "position": [0, 0], "parameters": {"formTitle": "Caption Maker", "formDescription": "Topic aur tone bharo", "formFields": {"values": [{"fieldLabel": "Topic", "requiredField": true}, {"fieldLabel": "Tone", "fieldType": "dropdown", "fieldOptions": {"values": [{"option": "Funny"}, {"option": "Serious"}, {"option": "Desi dost"}]}, "requiredField": true}]}, "options": {}}}, {"id": "2", "name": "Write Captions", "type": "@n8n/n8n-nodes-langchain.chainLlm", "typeVersion": 1.6, "position": [320, 0], "parameters": {"promptType": "define", "text": "=Write 3 Instagram captions for a Reel in simple Hinglish (Roman script).\nTopic: {{ $json.Topic }}\nTone: {{ $json.Tone }}\nEach caption: one strong first line, one or two short lines, then exactly 5 relevant hashtags.\nNumber them 1, 2, 3. Never promise reach, followers or results."}}, {"id": "3", "name": "Gemini Model", "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini", "typeVersion": 1, "position": [340, 260], "parameters": {"options": {}}}, {"id": "4", "name": "Save Captions", "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.5, "position": [700, 0], "parameters": {"resource": "sheet", "operation": "append", "documentId": {"__rl": true, "mode": "id", "value": ""}, "sheetName": {"__rl": true, "mode": "name", "value": "Captions"}, "columns": {"mappingMode": "defineBelow", "value": {"Date": "={{ $today.toISODate() }}", "Topic": "={{ $('Caption Form').item.json.Topic }}", "Tone": "={{ $('Caption Form').item.json.Tone }}", "Captions": "={{ $json.text }}"}, "matchingColumns": [], "schema": []}, "options": {}}} ], "connections": { "Caption Form": {"main": [[{"node": "Write Captions", "type": "main", "index": 0}]]}, "Write Captions": {"main": [[{"node": "Save Captions", "type": "main", "index": 0}]]}, "Gemini Model": {"ai_languageModel": [[{"node": "Write Captions", "type": "ai_languageModel", "index": 0}]]} } } ``` Is JSON mein credentials nahi hain aur Document khali hai: tumhe khud bharna hai. Prompt aur Sheet ke column naam hamari design hain, apne hisaab se badlo. > **Instagram par auto-post kyun nahi** > > - Meta ke Content Publishing page ke hisaab se publishing "Instagram professional accounts" par hoti hai aur uske liye permissions chahiye (Instagram Login ke saath instagram_business_content_publish, Facebook Login ke saath instagram_content_publish) aur app ke access levels (Standard / Advanced) lagte hain. > - Ye setup is starter ka hissa nahi hai. Isliye workflow caption Sheet mein rakhta hai, aur tum use copy karke khud post karte ho. ## Free Gemini quota aur privacy Google ke Gemini API terms ke hisaab se: "When you use Unpaid Services, including, for example, Google AI Studio and the unpaid quota on Gemini API, Google uses the content you submit to the Services and any generated responses to provide, improve, and develop Google products and services", aur "Do not submit sensitive, confidential, or personal information to the Unpaid Services." - Form mein sirf wahi topic daalo jo tum waise bhi public post karne wale ho. - Phone, address, kisi aur ki private baat, ya kisi client ka confidential kaam form mein mat daalo. - Free tier ki limits badalti rehti hain: AI Studio mein apna quota dekho. ## Caption ko apna kaise banayein (humari salaah) - AI ke captions aksar ek jaise lagte hain: teen mein se ek chuno aur pehli line apni awaaz mein badlo. - Jo caption chal gaya, use Sheet mein alag tab mein rakho aur agli baar uska style Tone field mein likh do. - Reach ya followers ka koi vaada nahi: caption ek hissa hai, aur kitna dikhega ye platform aur content par depend karta hai. ## Aam galtiyan - Workflow publish nahi kiya: Production URL tab kaam nahi karta. - Test URL ko hi share kar dena: wo sirf editor mein kaam karta hai. - Sheet ke column naam workflow ke naam se alag. - Private ya confidential baat form mein daalna. - AI ka caption bina padhe post kar dena. ## Kharcha (plans badalte rehte hain, official page dekho) | Option | Official pages ke hisaab se | | --- | --- | | Self-host (Community Edition) | n8n docs: Community edition free hai, lagbhag poora feature set. Apna server / PC chahiye jo chalta rahe. | | n8n Cloud | Pricing page: free trial, phir paid plans. Prices yahan nahi likhe: page dekho. | | Gemini API | Google AI Studio se key; unpaid quota ke terms upar hain. Limits badalti rehti hain. | > **Yaad rakho** > > - Form Trigger -> Basic LLM Chain (+ Gemini Model) -> Google Sheets (Append Row). > - Starter workflow: credentials khud jodo, ek test, phir publish. Production URL se form use karo. > - Caption copy karke khud post karo. Pehli line apni awaaz mein. Private baat form mein nahi. Reach ka koi vaada nahi. ## Official links - [n8n docs: Form Trigger](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.formtrigger/) - [n8n docs: Basic LLM Chain](https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.chainllm/) - [n8n docs: Google Gemini Chat Model](https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatgooglegemini/) - [n8n docs: Google Gemini credential](https://docs.n8n.io/integrations/builtin/credentials/googleai/) - [n8n docs: Google Sheets node](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googlesheets/) - [Meta: Instagram Content Publishing](https://developers.facebook.com/docs/instagram-platform/content-publishing/) - [Google: Gemini API terms](https://ai.google.dev/gemini-api/terms) - [n8n: choose how to use n8n (Community Edition)](https://docs.n8n.io/choose-how-to-use-n8n/) - [n8n pricing (Cloud)](https://n8n.io/pricing/) --- More free guides: https://bloopcommits.pages.dev/