{
  "name": "AI sales agent: WhatsApp, FB, IG, OpenAI, Airtable, Supabase auto-booking",
  "nodes": [
    {
      "id": "9addca79-498b-44cc-8b7b-da5689c443d4",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2800,
        800
      ]
    },
    {
      "id": "655b1e6f-88cb-4417-8ed6-41b8e7f39c20",
      "name": "No Operation, do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        2540,
        800
      ]
    },
    {
      "id": "3147df28-dcbb-4570-8a0a-5fe72832718d",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        3940,
        700
      ]
    },
    {
      "id": "2514349d-d847-4396-b634-c2ef777588d5",
      "name": "Facebook Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [
        1180,
        840
      ]
    },
    {
      "id": "60321484-988a-4190-9282-ea7dd1b39c26",
      "name": "Edit Fields - facebook",
      "type": "n8n-nodes-base.set",
      "position": [
        1640,
        920
      ]
    },
    {
      "id": "65a6d0de-14d9-4dd9-9efc-1ad6d7b79cd4",
      "name": "Respond to Webhook - facebook post",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1440,
        720
      ]
    },
    {
      "id": "25d0ee32-1dcd-4a6f-9119-d23561c110e8",
      "name": "Respond to Webhook - facebook get",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1420,
        900
      ]
    },
    {
      "id": "6fab5fc8-e30e-476b-b45f-f03d7b1a7195",
      "name": "Instagram Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [
        1120,
        1360
      ]
    },
    {
      "id": "f07daa8f-4392-478c-b56f-ce230241d87d",
      "name": "Respond to Webhook - instagram get",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1380,
        1460
      ]
    },
    {
      "id": "dfceb449-89ae-4c58-884d-b77d21c09020",
      "name": "Respond to Webhook - instagram post",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1380,
        1260
      ]
    },
    {
      "id": "4c137f1e-1bbc-48f2-900e-24be7096372c",
      "name": "Edit Fields - instagram",
      "type": "n8n-nodes-base.set",
      "position": [
        1840,
        1260
      ]
    },
    {
      "id": "f6bd4f71-f5f5-4ad1-a3b3-4b0de83767a1",
      "name": "If is not echo - facebook",
      "type": "n8n-nodes-base.if",
      "position": [
        1640,
        720
      ]
    },
    {
      "id": "40df05f1-eea9-42ad-8ff4-6cfe1d4b8e1a",
      "name": "If is not echo - instagram",
      "type": "n8n-nodes-base.if",
      "position": [
        1600,
        1260
      ]
    },
    {
      "id": "c6bd22d4-293b-49d8-94a2-da2851a0fbde",
      "name": "Embeddings OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        2880,
        1440
      ]
    },
    {
      "id": "e32746ce-7593-4ae5-9fc6-1834bf7116cf",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        3080,
        1240
      ]
    },
    {
      "id": "068daa60-de05-4106-b408-d904898f44a0",
      "name": "Demo Supabase",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
      "position": [
        2780,
        1240
      ]
    },
    {
      "id": "8088cc8d-cb56-43b5-ac20-fddfe6721a0c",
      "name": "Calendar Agent",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        2640,
        1040
      ]
    },
    {
      "id": "fd7cc952-a433-4c6f-865c-1fe0406daf34",
      "name": "CRM Agent",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        2760,
        1040
      ]
    },
    {
      "id": "90152733-4a5d-4c39-b274-838b86c7214b",
      "name": "Postgres Chat Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryPostgresChat",
      "position": [
        2520,
        1040
      ]
    },
    {
      "id": "f82219d3-e81e-4735-8fec-428e24e306cb",
      "name": "sales_technique_knowledge",
      "type": "@n8n/n8n-nodes-langchain.toolVectorStore",
      "position": [
        2880,
        1040
      ]
    },
    {
      "id": "31301f2b-8fa4-46f8-be5c-98d2013123cf",
      "name": "Handle Message Types",
      "type": "n8n-nodes-base.switch",
      "position": [
        1640,
        360
      ]
    },
    {
      "id": "7429d3a0-1da8-45ca-8886-7bf6c335f28b",
      "name": "Reply To User1",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1860,
        220
      ]
    },
    {
      "id": "e3144cd3-dcaa-4fcf-9760-f8f8b12f5351",
      "name": "Edit Fields - chat1",
      "type": "n8n-nodes-base.set",
      "position": [
        2160,
        380
      ]
    },
    {
      "id": "e51934e6-ba7b-455e-86b9-f2dfbf2283a6",
      "name": "Reply To  User",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        4160,
        360
      ]
    },
    {
      "id": "d64c1897-7e0b-45a0-bdbc-515b7ade019c",
      "name": "WhatsApp",
      "type": "n8n-nodes-base.whatsAppTrigger",
      "position": [
        1200,
        360
      ]
    },
    {
      "id": "ae61d0df-d990-48a7-89bf-77bc23dbe0a8",
      "name": "WhatsApp Business Cloud",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1860,
        360
      ]
    },
    {
      "id": "7d426761-cc8e-40dc-8379-c68c587a5535",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2160,
        540
      ]
    },
    {
      "id": "2a9389b2-06d0-4c0c-9258-fa00108221fb",
      "name": "OpenAI",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2160,
        760
      ]
    },
    {
      "id": "fe272020-8965-4141-8424-bfcd60a2879c",
      "name": "Edit Fields - chat2",
      "type": "n8n-nodes-base.set",
      "position": [
        2160,
        980
      ]
    },
    {
      "id": "1d11a556-6fef-4aa7-9647-235df6bb0adb",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2600,
        1280
      ]
    },
    {
      "id": "244019eb-6458-412d-8723-7cf80dda66e0",
      "name": "Airtable",
      "type": "n8n-nodes-base.airtable",
      "position": [
        1920,
        1900
      ]
    },
    {
      "id": "c3cc2f61-c783-4012-ac86-de0b5509f5bf",
      "name": "Edit Fields - form",
      "type": "n8n-nodes-base.set",
      "position": [
        2360,
        1900
      ]
    },
    {
      "id": "e8fd649e-196e-43c9-a6b1-380bb0edab28",
      "name": "Airtable Form Submitted",
      "type": "n8n-nodes-base.webhook",
      "position": [
        1700,
        1900
      ]
    },
    {
      "id": "159c829d-5793-46bf-a946-bde7dfcdd573",
      "name": "Sales Agent Demo - typing_on",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        1860,
        720
      ]
    },
    {
      "id": "8cf6f3a6-24e5-4d15-a04f-26a4ea03b863",
      "name": "Facebook Graph API - Sales Agent Demo",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        4160,
        560
      ]
    },
    {
      "id": "289d92fe-2b53-4e15-81ed-73adaaa0df02",
      "name": "Instagram Graph API - smb.sales.agent.demo",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4160,
        760
      ]
    },
    {
      "id": "25076437-3d9b-454c-83a7-bd318710c093",
      "name": "AI Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2720,
        -100
      ]
    },
    {
      "id": "d0a454bf-f377-472e-a6b2-63c058d4cebf",
      "name": "Embeddings OpenAI1",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        2520,
        340
      ]
    },
    {
      "id": "158c32ff-3aa8-4878-92f5-3577d02da43f",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2960,
        360
      ]
    },
    {
      "id": "8b71ff29-e758-40bf-8bbc-2c72ec8b77f7",
      "name": "Demo Supabase1",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
      "position": [
        2660,
        360
      ]
    },
    {
      "id": "d827e73a-7069-4b4b-a97c-8d73481905c4",
      "name": "Postgres Chat Memory1",
      "type": "@n8n/n8n-nodes-langchain.memoryPostgresChat",
      "position": [
        2640,
        160
      ]
    },
    {
      "id": "c0aaf0c6-a29c-4b5d-a91a-caa24447b68c",
      "name": "sales_technique_knowledge1",
      "type": "@n8n/n8n-nodes-langchain.toolVectorStore",
      "position": [
        2760,
        160
      ]
    },
    {
      "id": "6405d310-4cb7-4c55-8484-7f45ca40d45a",
      "name": "OpenAI Chat Model3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2520,
        160
      ]
    },
    {
      "id": "cdf2597f-934c-47d3-b843-22d531fe4f61",
      "name": "Calendar Agent1",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        3060,
        160
      ]
    },
    {
      "id": "f8897f1a-3b3b-412d-81af-2002fc023703",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        1600,
        1440
      ]
    },
    {
      "id": "7606244f-a59f-48d6-9ca0-8fa2cf7d83bf",
      "name": "Edit Fields - chat",
      "type": "n8n-nodes-base.set",
      "position": [
        1840,
        1460
      ]
    },
    {
      "id": "fefa88ca-dd9d-4061-a76a-aeb2155dedf0",
      "name": "Output - chat",
      "type": "n8n-nodes-base.set",
      "position": [
        4160,
        960
      ]
    },
    {
      "id": "1cfdc044-870f-464a-8431-0408f4fe7409",
      "name": "WhatsApp Business Cloud2",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        2580,
        1900
      ]
    },
    {
      "id": "f0ab4ccf-c9df-45c1-8d22-647d9c143ba9",
      "name": "Get Lead",
      "type": "n8n-nodes-base.airtable",
      "position": [
        1420,
        360
      ]
    },
    {
      "id": "6b942af3-b796-4860-953d-f7d2aef4b201",
      "name": "Create Contact",
      "type": "n8n-nodes-base.airtable",
      "position": [
        2140,
        1900
      ]
    },
    {
      "id": "a7c9dd71-db24-405a-9193-e9b37d05f915",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2400,
        -180
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "4a15e4c3-6523-432e-ab43-aecdc396f3cd",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        820,
        160
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "6becd7d1-b79a-4307-8d35-3d18ef6f76c8",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        820,
        640
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "40c195f1-43f5-488d-a4b0-db3fc78b1955",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        820,
        1160
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "8747a173-9ab7-46f5-bd0b-aae2c3ad9358",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2400,
        540
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "f01553e6-3aca-4d23-8b40-c8114b988fa1",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1480,
        1740
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "3575bafb-4ea5-4b82-b18a-a01d2f7cbb29",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3720,
        100
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "1638cf86-cb3f-49c6-a917-37c6b0f9407a",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2100,
        220
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "OpenAI": {
      "main": [
        [
          {
            "node": "Edit Fields - chat2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Reply To  User",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Facebook Graph API - Sales Agent Demo",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Instagram Graph API - smb.sales.agent.demo",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Output - chat",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Airtable": {
      "main": [
        [
          {
            "node": "Create Contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Lead": {
      "main": [
        [
          {
            "node": "Handle Message Types",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp": {
      "main": [
        [
          {
            "node": "Get Lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "CRM Agent": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "OpenAI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Demo Supabase": {
      "ai_vectorStore": [
        [
          {
            "node": "sales_technique_knowledge",
            "type": "ai_vectorStore",
            "index": 0
          }
        ]
      ]
    },
    "Calendar Agent": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Create Contact": {
      "main": [
        [
          {
            "node": "Edit Fields - form",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Demo Supabase1": {
      "ai_vectorStore": [
        [
          {
            "node": "sales_technique_knowledge1",
            "type": "ai_vectorStore",
            "index": 0
          }
        ]
      ]
    },
    "Calendar Agent1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Facebook Trigger": {
      "main": [
        [
          {
            "node": "Respond to Webhook - facebook post",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Respond to Webhook - facebook get",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Demo Supabase",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Instagram Trigger": {
      "main": [
        [
          {
            "node": "Respond to Webhook - instagram post",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Respond to Webhook - instagram get",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields - chat": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields - form": {
      "main": [
        [
          {
            "node": "WhatsApp Business Cloud2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI1": {
      "ai_embedding": [
        [
          {
            "node": "Demo Supabase1",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "sales_technique_knowledge",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "sales_technique_knowledge1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields - chat1": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields - chat2": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Handle Message Types": {
      "main": [
        [
          {
            "node": "Edit Fields - chat1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "WhatsApp Business Cloud",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Reply To User1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Postgres Chat Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Postgres Chat Memory1": {
      "ai_memory": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields - facebook": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Airtable Form Submitted": {
      "main": [
        [
          {
            "node": "Airtable",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields - instagram": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp Business Cloud": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "No Operation, do nothing": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If is not echo - facebook": {
      "main": [
        [
          {
            "node": "Edit Fields - facebook",
            "type": "main",
            "index": 0
          },
          {
            "node": "Sales Agent Demo - typing_on",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "sales_technique_knowledge": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "If is not echo - instagram": {
      "main": [
        [
          {
            "node": "Edit Fields - instagram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Edit Fields - chat",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "sales_technique_knowledge1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Respond to Webhook - facebook post": {
      "main": [
        [
          {
            "node": "If is not echo - facebook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Respond to Webhook - instagram post": {
      "main": [
        [
          {
            "node": "If is not echo - instagram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}