🤖

Building an AI Agent with Make.com

Apr 30, 2025

Creating an AI Agent with Make.com and OpenAI Assistance

Overview

  • Demonstration on creating an AI agent using Make.com and OpenAI Assistance.
  • Enables conversation via Telegram; also applicable with WhatsApp, Slack, etc.
  • Capable of posting on social media, researching topics, and generating images.
  • Utilizes OpenAI's function calling for simple scenario creation.
  • Modular design for easy understanding and reuse.

Tools and Scenarios

  • Research Tool: Uses Perplexity for topic research.
  • Image Tool: Uses Flux One for image generation.
  • Posting Tool: Uses Make.com's internal Facebook app for direct publishing.

Demo Process

  1. Initiating a Post:

    • Start by creating a Facebook post about a topic, e.g., "Deep Seek V3."
    • Message sent via Telegram triggers Make.com scenario.
    • OpenAI Assistant is called to request research using Perplexity.
    • Draft post is returned, and adjustments can be made (e.g., tone).
  2. Image Generation:

    • Option to generate an accompanying image.
    • Requests image using the Image Tool scenario.
    • Allows further customization of image content.
  3. Publishing to Facebook:

    • Finalized post and image uploaded directly to Facebook.

Design Patterns

  • Main Scenario:

    • Triggered by new messages.
    • Utilizes an instant trigger for rapid responses.
    • Uses a Telegram bot for message updates.
  • Function Calling:

    • Facilitates tool integration and scenario triggering.
    • Research, Image, and Posting tools trigger respective Make.com scenarios via webhooks.
  • Assistant Setup:

    • Create assistants on platform.openai.com.
    • Provide clear system instructions and operational procedures.

Benefits and Applications

  • Modularity:

    • Easy to adapt tools and scenarios for various agents.
    • Promotes reuse and reduces complexity.
  • Micro Templates:

    • Smaller, agent-specific scenarios with webhooks.
    • Applicable across different agent platforms.

Technical Details

  • Data Handling:

    • Uses data stores to manage chat history (thread IDs).
    • Provides context for ongoing conversations.
  • Error Handling:

    • Router and error handler for managing OpenAI Assistant errors.
    • Custom filters for specific error responses.

Community and Resources

  • Encouragement to subscribe for more AI content.
  • Links to community for accessing automation tools and templates.
  • Offer of live support and workshops for learning and troubleshooting.