Delegate and track WhatsApp tasks with WhatsApp, Google Sheets and OpenAI
Ready for 3.0What this workflow does
This AI workflow has 27 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Sheets, Google Drive, Postgres Chat Memory and OpenAI Chat Model.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Set config (Edit Fields (Set)): sets 6 fields: waha_api_url, waha_api_key, waha_session…
- From the supervisor? (If): checks a condition and branches into true / false
- Supervisor agent (AI Agent): runs an AI agent, with model: Chat model - Supervisor; 5 tools (Read tasks tool, Create task tool, Update task tool, Save contact tool…); memory: Supervisor memory
- Ignore bot and status messages (If): checks a condition and branches into true / false
- Reply to the supervisor (HTTP Request): calls an HTTP API (POST)
- Is it a reply to a task? (If): checks a condition and branches into true / false
- Assignee agent (AI Agent): runs an AI agent, with model: Chat model - Assignee; 2 tools (Update task status tool, Read tasks tool (assignee)); memory: Assignee memory
- Message has text? (If): checks a condition and branches into true / false
- Any photo attached? (If): checks a condition and branches into true / false
- Ask them to quote the task (HTTP Request): calls an HTTP API (POST)
…plus 5 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Google Drive + Google Sheets templates (720) · Other OpenAI + Google Drive templates (628)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- Google Sheets Tool
n8n-nodes-base.googleSheetsTool - Webhook
n8n-nodes-base.webhook - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Google Drive
n8n-nodes-base.googleDrive - Postgres Chat Memory
@n8n/n8n-nodes-langchain.memoryPostgresChat - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - AI Agent
@n8n/n8n-nodes-langchain.agent - Edit Fields (Set)
n8n-nodes-base.set
From the author
Quick overview This workflow receives WhatsApp messages via a WAHA webhook and uses OpenAI agents to create, query, and update tasks stored in Google Sheets, while assignee replies (optionally with photo proof saved to Google Drive) are summarized and…