Actions
Custom Actions
Guide to creating Custom Actions for existing tool or new tool
What are Custom Actions?
- Extend the functionality of existing tools by creating a custom action which utilises the existing authentication. (Fetch emails from Gmail)
- Write a custom action code snippet to execute the custom action (Check if number is even or odd)
Custom Actions can be created for any existing tool in Composio, allowing you to tailor the functionality to your specific needs while leveraging the existing authentication.
Creating a Custom Action
1
Import necessary modules
2
Creating a custom action
As gmail
toolname is already registered in Composio, auth
dictionary will be automatically provided!
3
Executing the Custom Action
We can execute the custom action without Agents as well
Output from executing Custom Action without Agents
Why Use Custom Actions?
Custom Actions provide several advantages:
- Data privacy: Execution happens on the user’s machine, ensuring sensitive data doesn’t leave the local environment.
- Flexibility: Users can create and customize as many tools and actions as needed.
- Compatibility: Custom actions can be integrated seamlessly across various Composio-supported platforms.
Was this page helpful?