How to Build a WhatsApp AI Agent (Full Setup With Meta Cloud API)
ConnectXeo
0:00 / 0:00
How to Build a WhatsApp AI Agent (Full Setup With Meta Cloud API)
31 просмотр · 4 дн. назад
ConnectXeo
270 подписчиков
31 просмотр · 4 дн. назад
Day 8 of building ZEK, an agentic commerce system from scratch 💬🤖
Our AI shopping agent now lives in WhatsApp. In this episode I connect the ZEK agent to WhatsApp using Meta's Cloud API: creating the Meta app, testing with Meta's free test number, exposing my local backend with langgraph dev --tunnel, configuring and verifying the webhook, subscribing to messages — and then chatting with ZEK live in WhatsApp.
Shoppers can now just send "hi", ask for electronics or kitchen products, and the same agent that runs our web store answers them instantly, 24/7.
💻 Source code (100% open source):
https://github.com/Sami606713/zek
📚 Related links
• Meta for Developers (create your app): / apps
• WhatsApp Cloud API docs: / cloud-api
• Cloud API — Get started: / get-started
• Set up WhatsApp webhooks: / set-up-webhooks
• WhatsApp webhooks reference: / webhooks
• Graph API webhooks (verification): / getting-started
• LangGraph CLI (langgraph dev --tunnel): https://docs.langchain.com/langsmith/cli
• Cloudflare quick tunnels: https://developers.cloudflare.com/clo...
📺 Previous episodes
• The complete backend: • AI Agent Backend With FastAPI + LangGraph ...
⏱️ Chapters
0:00 Setting Up the WhatsApp Business API
2:22 Testing the Messaging API
3:37 Configuring the Production Environment
6:14 Enabling Essential Webhook Events
7:12 Real-Time Agent Interaction Demo
🧠 What you'll learn
• How to create a Meta app and enable the WhatsApp Cloud API
• Testing with Meta's free test number before going to production
• Exposing a local backend publicly with langgraph dev --tunnel
• How the WhatsApp webhook verification handshake works
• Subscribing to WhatsApp message events
• Connecting a LangGraph AI agent so it replies to customers automatically
⏭️ Next: product images in WhatsApp chats and separating customers from admins for security.
👍 If this helped you, like, subscribe and share it with someone building AI agents. Questions? Drop them in the comments!
#WhatsApp #AIAgents #WhatsAppAPI #MetaCloudAPI #LangGraph #LangChain #AgenticAI #Chatbot #Ecommerce #BuildInPublic #ZEK
Follow along:
Instagram: / connectxeo
X: https://x.com/0xAgentHQ
TikTok: / connectxeo
YouTube: / @connectxeo