Custom Actions are powerful building blocks that enable you to create custom functionality while running independently. They can handle everything from simple data processing to complex third-party integrations.

Creating a Custom Tool without Authentication

1

Import necessary modules

2

Creating a custom action

Below are examples of creating a custom action called my_custom_action (Python) & myCustomAction (JavaScript) to make cowsay say whatever you want it to say.

You need to add the action, input parameters & return content description, this is what the LLM will use to understand the action.

3

Executing the Custom Action

Executing the custom action using LLM. Learn how to execute the custom action without LLM here.

Output from executing Custom Action

Why Use Custom Tools or Actions?

Custom Tools or 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