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 receives YouTube Shorts webhook events, downloads the video via Apify, uses Google Gemini and an OpenAI-compatible chat model to generate Pinterest SEO metadata and choose a board, then

@Apify/N8N Nodes Apify, HTTP Request, Chain Llm +3
AI & RAG

FE-BE-SELF. Uses httpRequest, n8n-nodes-minio, agent, chatTrigger. Webhook trigger; 12 nodes.

HTTP Request, N8N Nodes Minio, Agent +3
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

WhatsApp Agent com Claude. Uses agent, lmChatAnthropic, memoryBufferWindow, httpRequest. Webhook trigger; 10 nodes.

Agent, Anthropic Chat, Memory Buffer Window +1