AutomationFlowsAI & RAG › WhatsApp Order Agent with AI & Inventory Check

WhatsApp Order Agent with AI & Inventory Check

Original n8n title: Whatsapp Order Agent Workflow

WhatsApp Order Agent Workflow. Uses openai, httpRequest, whatsapp. Webhook trigger; 4 nodes.

Webhook trigger★★☆☆☆ complexityAI-powered4 nodesOpenAIHTTP RequestWhatsApp
AI & RAG Trigger: Webhook Nodes: 4 Complexity: ★★☆☆☆ AI nodes: yes Added:

This workflow follows the HTTP Request → OpenAI recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "WhatsApp Order Agent Workflow",
  "nodes": [
    {
      "id": "node-1",
      "name": "WhatsApp Trigger",
      "type": "n8n-nodes-base.webhook",
      "parameters": {
        "path": "whatsapp-webhook",
        "method": "POST"
      },
      "position": [
        100,
        200
      ]
    },
    {
      "id": "node-2",
      "name": "AI Intent Analysis",
      "type": "n8n-nodes-base.openai",
      "parameters": {
        "model": "gpt-4",
        "prompt": "Analyze the user's message: {{ $node[\"WhatsApp Trigger\"].json[\"body\"][\"message\"] }}. Extract the product and quantity if they want to order something."
      },
      "position": [
        300,
        200
      ]
    },
    {
      "id": "node-3",
      "name": "Check Inventory",
      "type": "n8n-nodes-base.httpRequest",
      "parameters": {
        "url": "https://api.inventory.local/check",
        "method": "POST",
        "bodyParameters": {
          "product": "={{ $node[\"AI Intent Analysis\"].json[\"extracted\"][\"product\"] }}"
        }
      },
      "position": [
        500,
        200
      ]
    },
    {
      "id": "node-4",
      "name": "Send WhatsApp Response",
      "type": "n8n-nodes-base.whatsapp",
      "parameters": {
        "message": "Hello! We've received your order for {{ $node[\"AI Intent Analysis\"].json[\"extracted\"][\"quantity\"] }}x {{ $node[\"AI Intent Analysis\"].json[\"extracted\"][\"product\"] }}. We're processing it now!"
      },
      "position": [
        700,
        200
      ]
    }
  ],
  "connections": {
    "node-1": {
      "main": [
        [
          {
            "node": "node-2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "node-2": {
      "main": [
        [
          {
            "node": "node-3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "node-3": {
      "main": [
        [
          {
            "node": "node-4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

WhatsApp Order Agent Workflow. Uses openai, httpRequest, whatsapp. Webhook trigger; 4 nodes.

Source: https://github.com/hexray1/agentverse-ai/blob/ae2d41c4c3a281d1326a8367de0d23a415796dd6/flows/demo.json — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

N8N Workflow. Uses httpRequest, toolHttpRequest, memoryBufferWindow, lmChatGoogleGemini. Webhook trigger; 13 nodes.

HTTP Request, Tool Http Request, Memory Buffer Window +2
AI & RAG

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

Agent, Anthropic Chat, N8N Nodes Octavehq +1
AI & RAG

Messenger. Uses agent, memoryBufferWindow, httpRequest, googleSheetsTool. Webhook trigger; 9 nodes.

Agent, Memory Buffer Window, HTTP Request +2
AI & RAG

n8n_workflow. Uses chatTrigger, httpRequest, agent, lmChatOpenAi. Webhook trigger; 8 nodes.

Chat Trigger, HTTP Request, Agent +2
AI & RAG

whatsapp ai penjadwalan. Uses googleCalendarTool, lmChatGoogleGemini, agent, httpRequest. Webhook trigger; 7 nodes.

Google Calendar Tool, Google Gemini Chat, Agent +1