{
  "name": "Automate restaurant customer service with WhatsApp and Llama AI chatbot",
  "nodes": [
    {
      "id": "2990c149-51a8-4fa8-a9a6-2fe4c4e42b72",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -220,
        -620
      ],
      "parameters": {
        "width": 1000,
        "height": null,
        "content": "## This workflow powers a WhatsApp chatbot that answers customer questions about restaurant timing, menu, booking, services, and offers.\n\n## It uses a chat model (LLM) to understand queries and respon"
      }
    },
    {
      "id": "32a367b4-c14d-47f8-9ba1-483772e30564",
      "name": "Send Reply to Customer",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        636,
        -140
      ]
    },
    {
      "id": "44c64110-9c14-411b-9e12-9843510696d2",
      "name": "Wait For Response",
      "type": "n8n-nodes-base.wait",
      "position": [
        196,
        -240
      ]
    },
    {
      "id": "3021f85b-00af-417b-8022-dc5f717e4ab7",
      "name": "Receive WhatsApp Message",
      "type": "n8n-nodes-base.whatsAppTrigger",
      "position": [
        -400,
        -240
      ]
    },
    {
      "id": "34cf3695-d559-43ab-b720-e419c1094aee",
      "name": "Extract Customer Query",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -180,
        -240
      ]
    },
    {
      "id": "92c21a3b-01ad-4ec7-97e2-e5816f23ff81",
      "name": "Generate Reply with AI",
      "type": "@n8n/n8n-nodes-langchain.lmChatOllama",
      "position": [
        -92,
        -20
      ]
    },
    {
      "id": "dd5381b8-337a-4b60-857c-4c84b682edd6",
      "name": "Check If Table Booking Required",
      "type": "n8n-nodes-base.if",
      "position": [
        416,
        -240
      ]
    },
    {
      "id": "6fd96474-c7b2-444c-9f9e-960f6897a76d",
      "name": "Create New Table Booking",
      "type": "n8n-nodes-base.postgres",
      "position": [
        636,
        -340
      ]
    },
    {
      "id": "f5a58ce9-c39e-40bf-989a-328e8e1a67b3",
      "name": "Send Booking Confirmation to Customer",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        856,
        -340
      ]
    }
  ],
  "connections": {
    "Wait For Response": {
      "main": [
        [
          {
            "node": "Check If Table Booking Required",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Customer Query": {
      "main": [
        [
          {
            "node": "Wait For Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Reply with AI": {
      "ai_languageModel": [
        [
          {
            "node": "Extract Customer Query",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Create New Table Booking": {
      "main": [
        [
          {
            "node": "Send Booking Confirmation to Customer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive WhatsApp Message": {
      "main": [
        [
          {
            "node": "Extract Customer Query",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check If Table Booking Required": {
      "main": [
        [
          {
            "node": "Create New Table Booking",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Reply to Customer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}