Create an Action
Creating an action in TaskingAI is a straightforward process, whether you prefer using the user interface (UI) or a client SDK. Here's a guide to help you through both methods:
Bulk Create on Console
- Navigate to the Project page then go to the
Tools
tab. - Select the
action
subpage and click thenew action
button. - Enter the
OpenAPI Json schema
to describe the API. If you are not familiar withOpenAPI Json schema
, you can visit OpenAPI Json Schema reference for more information. - Choose the appropriate
Authentication type
for the API and set up credentials if necessary. - Click the
confirm
button.
note
For the schema with multiple paths and methods, multiple actions will be created, each containing only one path and method. The operationId and description fields in each endpoint method are required as they are used as the name and description of the tool.
Here are some important schema considerations when creating an action:
- Adherence to OpenAPI Specifications: Ensure your schema follows these standards.
- Server URL: Include one server URL per action.
- Method Description: This will be used as the action's description.
- Action Name: Defined by the operationId in the schema.
- Completeness: Ensure operationId and description are fully detailed.
- Handling Multiple Paths/Methods: TaskingAI creates separate actions for each path/method.
Authentication
Now we support NONE
, BASIC
, BEARER
or CUSTOM
authentication types. Please configure your authentication type and credentials accordingly.