Learn how to implement a bot for Automa
Language | Template |
---|---|
TypeScript | bot-typescript |
Python | bot-python |
/webhook
) to receive events from Automa. For security, you should also verify the webhook signature to ensure that the request is coming from Automa. You can read more about the available webhook events and how they are structured in the Webhooks reference guide.
The starter kits already handle this, and the endpoint they provide is /automa
. They also require the AUTOMA_WEBHOOK_SECRET
environment variable to verify the webhook signature.
task.created
event. You can then download the code from Automa and begin making changes. Once you are done, you can submit the changes back to Automa, which will create a pull request in the repository.
The starter kits contain the logic to do this using the code.download
and code.propose
methods from the Bot SDKs.
update
function that you can implement to modify the code. This function is called from the webhook handler with the downloaded code’s location and the task data.
update
function or other parts of your bot.
If you want to test your bot with real tasks, follow these steps:
Run the bot locally
Expose the bot with a tunneling service
Update the webhook URL
Create tasks