Turn flows into Actionable Agents
Use the Composio tool integration to turn flows into Actionalble Agents
Composio allows you to connect your Mira Flows with various external services and platforms, enabling automated actions based on your flow outputs. This integration bridges the gap between AI-powered flows and real-world actions.
Composio tool requires Anthropic Claude-3.5-sonnet to function. Check out Models for more information.
Step-by-Step Integration Guide
1. Set Up Platform Integration
First, let’s set up your desired platform integration in Composio:
-
Visit Composio
-
Sign in to your account & Navigate to “All Tools”
-
Search for your desired integration (e.g., Twitter, Discord, Telegram)
-
Complete the integration process and authorise your account
2. Obtain Integration Details
After setting up the integration, you’ll need 3 key pieces of information:
-
API Key:
-
Go to your Composio dashboard
-
Look for the API key section at top and copy your API key.
-
You can use the default API key or create a new one
-
-
Enum:
-
Go to the actions of the app you want to integrate with
-
Copy the “Enum” of the action you wish to perform
-
-
Entity ID:
-
This is generated after you complete the platform integration
-
Find it in your “connected accounts” section under tools
-
3. Step by Step Demo
Here’s an interactive demo showing the process:
Code Implementation
ComposioConfig Attributes
Attribute | Description | Required |
---|---|---|
COMPOSIO_API_KEY | Your Composio authentication key | Yes |
ACTION | Platform-specific action (e.g., “TWITTER_POST”, “DISCORD_SEND”) | Yes |
TASK | Natural language description including {content} placeholder | Yes |
ENTITY_ID | Platform-specific entity identifier | Yes |
Code Example
What Not to Do
- Don’t forget
{content}
in TASK:
- Don’t modify the
{content}
placeholder:
- Don’t use multiple
{content}
placeholders:
Was this page helpful?