{
  "openruna_format": "flow-graph-v1",
  "title": "AI-Powered WhatsApp Chatbot for Text, Voice, Images & PDFs",
  "slug": "ai-powered-whatsapp-chatbot-for-text-voice-images-pdfs",
  "source_filename": "2033_Code_Extractfromfile_Automate_Webhook.json",
  "nodes": [
    {
      "id": "WhatsApp Trigger",
      "name": "WhatsApp Trigger",
      "integration": "whatsApp",
      "kind": "trigger"
    },
    {
      "id": "Download Image",
      "name": "Download Image",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Analyze Image",
      "name": "Analyze Image",
      "integration": "@n8n/n8n-nodes-langchain.openAi",
      "kind": "action"
    },
    {
      "id": "Download Audio",
      "name": "Download Audio",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Transcribe Audio",
      "name": "Transcribe Audio",
      "integration": "@n8n/n8n-nodes-langchain.openAi",
      "kind": "action"
    },
    {
      "id": "OpenAI Chat Model",
      "name": "OpenAI Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "AI Agent1",
      "name": "AI Agent1",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "Download File",
      "name": "Download File",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Extract from File",
      "name": "Extract from File",
      "integration": "extractFromFile",
      "kind": "action"
    },
    {
      "id": "Simple Memory",
      "name": "Simple Memory",
      "integration": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "kind": "action"
    },
    {
      "id": "Get File Url",
      "name": "Get File Url",
      "integration": "whatsApp",
      "kind": "action"
    },
    {
      "id": "Only PDF File",
      "name": "Only PDF File",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Fix mimeType for Audio",
      "name": "Fix mimeType for Audio",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Send message",
      "name": "Send message",
      "integration": "whatsApp",
      "kind": "action"
    },
    {
      "id": "Send audio",
      "name": "Send audio",
      "integration": "whatsApp",
      "kind": "action"
    },
    {
      "id": "Incorrect format",
      "name": "Incorrect format",
      "integration": "whatsApp",
      "kind": "action"
    },
    {
      "id": "Text",
      "name": "Text",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Audio",
      "name": "Audio",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Image",
      "name": "Image",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "File",
      "name": "File",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Not supported",
      "name": "Not supported",
      "integration": "whatsApp",
      "kind": "action"
    },
    {
      "id": "Get Image Url",
      "name": "Get Image Url",
      "integration": "whatsApp",
      "kind": "action"
    },
    {
      "id": "Get Audio Url",
      "name": "Get Audio Url",
      "integration": "whatsApp",
      "kind": "action"
    },
    {
      "id": "Generate Audio Response",
      "name": "Generate Audio Response",
      "integration": "@n8n/n8n-nodes-langchain.openAi",
      "kind": "action"
    },
    {
      "id": "From audio to audio?",
      "name": "From audio to audio?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Input type",
      "name": "Input type",
      "integration": "switch",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "File",
      "to": "AI Agent1"
    },
    {
      "from": "Text",
      "to": "AI Agent1"
    },
    {
      "from": "Audio",
      "to": "AI Agent1"
    },
    {
      "from": "Image",
      "to": "AI Agent1"
    },
    {
      "from": "AI Agent1",
      "to": "From audio to audio?"
    },
    {
      "from": "Input type",
      "to": "Text"
    },
    {
      "from": "Input type",
      "to": "Get Audio Url"
    },
    {
      "from": "Input type",
      "to": "Get Image Url"
    },
    {
      "from": "Input type",
      "to": "Only PDF File"
    },
    {
      "from": "Input type",
      "to": "Not supported"
    },
    {
      "from": "Get File Url",
      "to": "Download File"
    },
    {
      "from": "Analyze Image",
      "to": "Image"
    },
    {
      "from": "Download File",
      "to": "Extract from File"
    },
    {
      "from": "Get Audio Url",
      "to": "Download Audio"
    },
    {
      "from": "Get Image Url",
      "to": "Download Image"
    },
    {
      "from": "Only PDF File",
      "to": "Get File Url"
    },
    {
      "from": "Only PDF File",
      "to": "Incorrect format"
    },
    {
      "from": "Download Audio",
      "to": "Transcribe Audio"
    },
    {
      "from": "Download Image",
      "to": "Analyze Image"
    },
    {
      "from": "Transcribe Audio",
      "to": "Audio"
    },
    {
      "from": "WhatsApp Trigger",
      "to": "Input type"
    },
    {
      "from": "Extract from File",
      "to": "File"
    },
    {
      "from": "From audio to audio?",
      "to": "Generate Audio Response"
    },
    {
      "from": "From audio to audio?",
      "to": "Send message"
    },
    {
      "from": "Fix mimeType for Audio",
      "to": "Send audio"
    },
    {
      "from": "Generate Audio Response",
      "to": "Fix mimeType for Audio"
    }
  ]
}