Actions
This is a comprehensive in depth guide for Actions. If you’re just getting started, check out Getting Started With AI Copilots.
Credal Actions allow users to create well defined actions that copilots can then use proactively in helping you as your personal assistants.
Some basic examples of actions are:
- Address Validation
- Updating Info on collaboration tools (Confluence, Google Drive)
- Consulting with other copilots
Actions are a powerful tool to make your copilots even stronger than they already are.
Action Templates
It’s helpful to have a good sense of what you want your actions to do from the start, so you can set it up to achieve its objectives.
To get started:
-
There is an open source directory of action templates which can help you create actions
-
Think of templates as the skeleton of your action, an example being a template to update confluence docs.
-
You can find the open source templates library here: https://github.com/Credal-ai/actions-sdk
Note: You can create custom actions to interface with your private internal systems using the “Fetch from an API or trigger a webhook” template and pasting an OpenAPI spec!
1. Creating Your First Action
-
To create your first action go to the actions tab on the left sidebar
-
Then click the
Create New Action
button on the top right of the page
- Fill in the necessary information about your action including the template (note templates are updated regularly so check back often)
2. Configuring your Action
-
In this example we selected the
Validate Address on Google Maps
action, now we can see how to configure it. -
The beauty of actions is that it will try to resolve parameters for you, if you know the fields you’d want to use you can enter them in
-
Go through the parameters list and see what you’d like to hardcode, give options for the AI to decide, or leave up to the AI
Note: This specific action hits the Google Maps API
3. Human Governance
-
You can set your actions to automatically run or require user approval to run (in case it’s a sensitive action)
-
This can be toggled with the Human Governance Toggle
- When enabled any action invocation will require your approval before moving forward. This will show up in your conversation as a modal
4. Connecting Copilots With Actions
- Before you can use your action in a copilot you need to publish your action. In the action page, in the top left, click Actions -> Publish Action
-
A copilot can have any number of actions it’s connected to, to connect an action to a copilot go to the copilots page
-
Select the copilot you’d like to connect an action to
- Navigate to the Actions tab and search for the action you’d like to connect
-
You can connect any action automatically, however any copilot connection action will require approval: Read more here
-
Now your copilot can call on actions! It will do this automatically if it’s the best action to take
5. Contact Support
Actions are a powerful tool to make your copilots even stronger than they already are. They’re a new tool so if you have any questions or need help feel free to reach out to us at contact support@credal.ai.