๐ ๏ธ How to Use Actions
Learn how to perform actions with a connected account.
Using Actions
Prerequisite: Successfully linking an account & then having connectedAccountId
.
Actions are tasks which your agent can perform. Actions can be executed on the tools which are connected.
- Create a Google Calendar Event
- Send an email
Managed Actions available by default on Composio.
Working with Actions
Composio provides access to over 10,000 actions by default. To optimize LLM performance, itโs crucial to select a focused set of actions (typically 15 or fewer) that are most relevant to your specific task.
Choosing which actions to give LLM
Execute the action
Execute Action
Action Selection and Filtering
Directly invoking actions is generally discouraged as it can lead to significant performance issues when implemented in a production environment.
Some Composio tools provide a wide array of over 100 actions. However, there are several considerations to keep in mind:
- Performance Impact: The performance and decision-making accuracy of agents can diminish when they are overwhelmed with too many choices.
- Model Limitations: OpenAI Models imposes a limit, supporting no more than 128 actions per request. Exceeding this limit results in errors.
To address these issues, it is crucial to streamline the number of actions presented to agents. This can be effectively managed by employing various action filtering techniques.
Was this page helpful?