Automation library · Content

WhatsApp BOT for AI caption & hashtag generator with OpenAI

Started by an incoming WhatsApp message, and works across Google Sheets and WhatsApp. It hands the judgement calls to OpenAI. 21 steps, 2 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

21 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
1Loop or waits
2Services it connects to

The flow

Starts it 1Model 7Logic 4Service 9

The steps in the order they run, from what starts it.

  1. 1OpenAI Chat ModelLm Chat Open AiModel
  2. 2WhatsApp Trigger1Whats App triggerStarts it
  3. 3OpenAI Chat Model1Lm Chat Open AiModel
  4. 4Structured Output ParserOutput Parser StructuredModel
  5. 5Structured Output Parser1Output Parser StructuredModel
  6. 6caption, hashtag generatorAgentModel
  7. 7Check Input TypeSwitchLogic
  8. 8Video caption, hashtag music generatorAgentModel
  9. 9Updata log in SheetGoogle SheetsService
  10. 10Get Video URLWhats AppService
  11. 11Get Image URLWhats AppService
  12. 12Send messageWhats AppService
  13. 13Download videoHttp RequestService
  14. 14Download ImageHttp RequestService
  15. 15Upload video GeminiHttp RequestService
  16. 16Analyze ImageOpen AiModel
  17. 17Set file nameSetLogic
  18. 18Check video statusHttp RequestService
  19. 19Is state ACTIVE?IfLogic
  20. 20Analyze video GeminiHttp RequestService
  21. 21WaitWaitLogic

How it's built

Starts on
An incoming WhatsApp message
Steps
21, with 2 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets, WhatsApp
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Google Sheets and WhatsApp accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming WhatsApp message.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 21 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 21 steps before you point it at anything that matters.