Step by Step Guide
Create or get the OpenAPI Spec for the App
The first step is to get the OpenAPI Spec for the app you want to integrate with Composio. If the app does not have an OpenAPI Spec, you can create one using the Swagger Editor.Or you can keep it empty in case you are not interested in the actions and only need authentication.
Create the integrations.yaml File
Create an
Let’s start with creating the yaml file for GitHub by adding the basic info.Determine the supported auth method by the custom tool that you’re trying to add. Each Auth Method has its own set of fields. These fields are defined under the Auth Method. Please remember that the
In this case, GitHub uses OAuth2 for authentication.You need to add the relevant scopes as needed. Now that you have the
integrations.yaml file. Below is the base template for the Integrations.yaml file for any custom tool that you create. However, you will modify the auth schemes as each tool supports different auth methods.Base Template
Base Template
integrations.yaml file is indentation sensitive and should be formatted correctly.You can refer to below snippets of the each auth method to see how these fields are defined. You can add the supported auth methods in the integrations.yaml file by copying from the below snippets.OAuth1
OAuth1
OAuth2
OAuth2
API-KEY
API-KEY
BASIC
BASIC
integrations.yaml file ready, push the code and copy the URL of the repository.Add your Custom Tool on Composio
- Go to the tools page on Composio
- Click on the Setup a New Tool section
- Upload the Open API Spec file and the
integrations.yamlfile. - Click on the “Start import” button to begin testing.
- Once the tests pass successfully, you will be able to access this tool.
Testing Your Custom tool on Composio
Navigate back to the tools page on Composio. Search for the tool you just created, click on it, and proceed to connect your account.