This AI Agent Automates Your Sales on ALL Social Media (+MCP)

Ben AIAbout 7 min readApr 10, 2025Watch original
THE SUMMARYAI-generated

Key Concepts

Omni-channel AI agent, lead generation, CRM integration, appointment booking, Meta Conversational Platform (MCP), RAG (Retrieval-Augmented Generation), sub-agents, webhooks, WhatsApp Business API, Facebook Messenger API, Instagram API, no-code automation, AI agent architecture, tool usage, multi-agent systems, API calls, workflow automation.

Demo and Client Context

The video showcases an omni-channel AI sales agent developed for a lead generation agency specializing in the automotive industry. The agency generates leads for car repair shops, car painting shops, and similar businesses through social media ads (Facebook, Instagram, WhatsApp, and lead forms). The agent's primary functions are:

  • Answering questions from potential leads.
  • Qualifying leads based on criteria like the type of car.
  • Updating the CRM (Customer Relationship Management) system.
  • Booking appointments for consultations.

The agency was struggling with a high volume of inbound DMs across multiple platforms, requiring five full-time employees to manage lead qualification and appointment booking. The AI agent solution resulted in:

  • Increased follow-up speed from potentially a day or longer to instant responses.
  • A nearly 50% increase in booked meetings.
  • The redeployment of four out of five sales agents to lead generation activities.

Ben emphasizes that even with occasional errors, the AI agent delivers a high ROI (Return on Investment) due to its efficiency in handling high-volume customer interactions. He also highlights the potential for agencies with similar processes across multiple clients to transform their business model through AI and automation.

System Breakdown and Setup

The system architecture involves several key components and integrations:

  1. Lead Form Integration (AirTable Example):
    • A webhook is triggered when a lead fills out a form on AirTable.
    • The webhook sends the record ID to N8N.
    • N8N retrieves the lead's information using the record ID.
    • A new contact is created in the CRM (AirTable).
    • A personalized outbound WhatsApp message is sent using a pre-approved template.
  2. WhatsApp Trigger:
    • The WhatsApp trigger is activated when a lead sends a message.
    • The system retrieves the lead's information from AirTable.
    • The message type (text or audio) is determined.
    • Audio messages are downloaded, transcribed using Whisper, and sent to the AI agent.
    • Text messages are directly sent to the AI agent.
  3. AI Agent with RAG:
    • The AI agent uses RAG (Retrieval-Augmented Generation) through Superbase to answer questions.
    • It has a Postgres chat memory for context.
    • It runs on GPT-4.
    • It is equipped with two sub-agents: a CRM agent and a calendar agent.
  4. Sub-Agents:
    • CRM Agent: Has access to tools like "create a contact," "update a contact," "update opportunity," "list records," "get schema," and "create opportunity."
    • Calendar Agent: Has access to tools like "delete event," "get events," "update event," "create event," and "create event with attendee."
    • The use of sub-agents prevents overloading the main customer-facing agent with too many responsibilities, allowing it to focus on conversation quality.
  5. Facebook and Instagram Triggers:
    • Set up through webhooks.
    • Require responding to the webhook to prevent repeated messages.
    • Similar setup process for both platforms.
  6. Outbound Messaging:
    • WhatsApp: Requires pre-approved message templates for initiating conversations.
    • Facebook and Instagram: Use their respective APIs to send messages.

WhatsApp Setup Details

  • Official WhatsApp Business API: Requires a Meta-verified business. Ben recommends checking out his other video for a step-by-step guide on setting up the official WhatsApp Business API.
  • Third-Party Software (Uni): An alternative for personal WhatsApp numbers, allowing connection through an API.
  • WhatsApp Trigger Setup in N8N: Requires setting up a WhatsApp OAuth account with a client ID and client secret (found in the app settings on developer.facebook.com).
  • Testing Webhooks: Requires deactivating the scenario to use the test webhook or activating it to use the production webhook.
  • Downloading Media: Uses a specific WhatsApp module ("Download Media") and an HTTP request to download audio files.
  • Outbound Messages (Templates): Requires creating message templates in the WhatsApp Manager on Facebook Developers. Templates need to be approved by Meta.
  • Responding to Messages: Uses the "Send Message" node for conversations initiated by the customer, allowing for flexible responses.

Facebook and Instagram Setup Details

  • Easier setup compared to WhatsApp, as it doesn't require a Meta-verified business account.
  • Requires a professional or business Instagram account.
  • Steps:
    1. Create an app on developers.facebook.com.
    2. Add the Instagram or Messenger product to the app.
    3. Connect the app to the Instagram account or Facebook page.
    4. Configure webhooks in N8N.
    5. Set the app mode to "Live" (requires a privacy policy link).
  • Webhook Configuration:
    • Use the "Webhook" node in N8N.
    • Allow multiple HTTP methods (GET and POST).
    • Use "Respond to Webhook" node.
    • Verify the webhook by responding with the "hub.challenge" value.
    • Subscribe to "messages" in the webhook fields.
    • Always respond to the POST webhook with "event_received" to prevent repeated messages.
  • Message Handling:
    • Filter out "echo" messages (messages from the admin).
    • Send messages to the AI agent.
  • Sending Responses:
    • Facebook: Use the Facebook Graph API node with an access token (generated in the Messenger API settings).
    • Instagram: Use an HTTP request with the Instagram API endpoint and a header OAuth token (generated in the Instagram settings).

Meta Conversational Protocol (MCP)

  • Developed by Claude Anthropic.
  • Aims to simplify AI agent development and enhance capabilities.
  • Traditional AI Agent Architecture: Requires setting up each API call or tool separately, instructing the agent on tool usage, and can become unreliable with many tools.
  • Multi-Agent Systems: Use sub-agents to handle specific tasks and reduce complexity for the main agent.
  • MCP Approach: Connects the AI agent to an MCP server (e.g., AirTable MCP) that provides access to all the tools and functions of a specific software.
  • MCP Components:
    • List Tools: Lists all available tools in the software.
    • Execute Tool: Executes the selected tool.
  • Benefits of MCP:
    • Eliminates the need to hardcode each API call.
    • Simplifies tool usage for the agent.
    • Enables access to a wide range of functions.
  • Compass MCPS: An overarching MCP that can target the best MCP for a specific action, potentially connecting to hundreds or infinite amounts of software.
  • Future Implications:
    • Personal assistants that can perform actions across various tech stacks.
    • Business AI agents that can interact with customers and internal systems.
    • Integration with no-code platforms like N8N, Make.com, and Zapier.
  • Current Limitations:
    • Early stage of development.
    • Requires self-hosting.
    • Can be tricky to set up.
  • Short- to Mid-Term Opportunities:
    • Customizing MCPs for specific use cases.
    • Combining AI agents with deterministic workflow automation.

Notable Quotes

  • "I know many talk about the error rates of AI agents but I think this is a good example of a use case where despite AI agents still making some mistakes... it still delivers extremely high ROI for the client."
  • "Existing agencies like lead genen agencies and marketing agencies that have very similar processes for multiple clients are in an ideal position uh to adopt AI and automation as it can really entirely transform their business model."
  • "MCP is such a game changer because it can potentially really change the way we use AI agents and they can potentially become a lot easier to build and they'll have a lot more capabilities in the near future."

Technical Terms and Concepts

  • Omni-channel: Integrating multiple communication channels (e.g., Facebook, Instagram, WhatsApp) into a unified system.
  • Lead Generation: The process of attracting and converting potential customers into leads.
  • CRM (Customer Relationship Management): A system for managing interactions with current and potential customers.
  • RAG (Retrieval-Augmented Generation): An AI framework that combines pre-trained language models with information retrieval to generate more accurate and context-aware responses.
  • Webhook: A mechanism for applications to receive real-time data updates from other applications.
  • API (Application Programming Interface): A set of rules and specifications that software programs can follow to communicate with each other.
  • OAuth: An open standard for access delegation, commonly used to grant websites or applications access to information from other websites without giving them passwords.
  • MCP (Meta Conversational Protocol): A protocol developed by Claude Anthropic that allows AI agents to interact with various software and services through a standardized interface.

Synthesis/Conclusion

The video provides a detailed walkthrough of building an omni-channel AI sales agent, highlighting the practical benefits for lead generation agencies. It emphasizes the importance of integrating AI with existing systems and processes to achieve significant ROI. The introduction of MCP and its potential to revolutionize AI agent development is a key takeaway, suggesting a future where AI agents can seamlessly interact with a wide range of software and services. While MCP is still in its early stages, its potential to simplify AI agent development and unlock new capabilities is significant. The video also underscores the importance of combining AI with traditional workflow automation to create robust and reliable systems.

AI summaries can miss context or contain errors. Check important details against the original video.

Go a little deeper.

Have a question about this video? Load its transcript to open the video chat.