Trigger an automation from a GitHub webhook
How to trigger an automation from a GitHub webhook: install the Chrome extension, click Build with Browser agent, tell the agent what you want, and follow its prompts. A working bot is built and tested in minutes.
Here is how the automation works. To trigger an automation from a GitHub webhook, add a webhook to your repository whose payload URL is https://lar.axiom.ai/api/v3/trigger with your API key and the automation's name, and start the automation with a Receive data from another app step. Each repository event GitHub sends starts a run, with the event's data available to the steps, so a push, a pull request or an issue can start a notification or a log of repository events.
Build the GitHub webhook from a description
Describe it and click the button: the agent builds and tests the automation in your Chrome extension. You need your API key and a plan that includes webhooks, see pricing.
- Start when GitHub sends a webhook for my repo
- Take the event details GitHub sends
- Log each event as a new row in Airtable
You need a GitHub repository whose settings you can change. The webhook itself is added on GitHub, after the automation is saved, with its exact name in the payload URL: see how to add the webhook to a GitHub repository.
Build the GitHub webhook step by step
The steps the agent builds, as the Builder shows them: each step by its name, with the fields to set under it. Add them yourself in this order in the step-by-step builder, or open the agent's result there to adjust it.
- 1.0
Receive data from another appTest data: a sample GitHub payload, so the automation runs without a webhook being sent
- 2.0
Write data to AirtableDATA:[webhook-data], the event details GitHub sends
Common questions about the GitHub webhook
How do I add the webhook to my GitHub repository?
In the repository on GitHub, open Settings, then Webhooks, and click Add webhook. Set Payload URL to the axiom.ai endpoint with your API key and the automation's name in it, https://lar.axiom.ai/api/v3/trigger?key=<KEY>&name=<NAME>, with the name encoded for a URL (Hello world becomes Hello+world). Set Content type to application/json, choose the events, and save the webhook. Then push a commit and check the run reports in the extension to see that the automation ran.
What GitHub events can trigger an automation?
Any event GitHub can send by webhook. The webhook sends push events by default, and you can switch it to all events or pick specific ones. If the repository is busy, keep axiom.ai's rate limits in mind and send only the events you need.
Can I trigger an automation from GitHub on a free plan?
No. The Receive data from another app step is available on plans that include webhooks. See pricing.
Why does my automation not run when I push to GitHub?
Usually the payload URL is wrong: check the API key and that the automation's name matches exactly and is URL encoded (spaces become +). Then check the run reports in the extension, and see common errors for what the builder reports. When a run fails, hand it to the agent and it repairs the step.
Can I test the automation without pushing to GitHub?
Yes. Paste a sample GitHub payload into Test data on the Receive data from another app step and run the automation. Data sent by a real webhook replaces the test data.
Can I run an automation on a GitHub push without code?
Yes. The webhook is a form on GitHub and the automation is two steps in the builder; the only thing typed is the payload URL with your key and the automation's name.
Does it work with GitLab or Bitbucket webhooks?
Yes. Any service that can send a webhook to a URL can call the same payload URL, so a GitLab or Bitbucket repository starts the automation the same way, with that service's own payload in [webhook-data]. Send and receive webhooks in a browser automation covers webhooks in general.
What can I do with GitHub events in an automation?
Send notifications or keep a log of repository events. See automate Slack or post to Discord for notifications, and post data to Airtable, Supabase or Tadabase for a log.
How do I get help with a GitHub webhook?
Get in touch with support, or ask in the axiom.ai community.
Related guides
Trigger an axiom.ai automation from Apple Automator
- Start when Apple Automator sends me data
- Take the rows it sends
- Add them to my Google Sheet
Trigger an automation from Google Apps Script with sheet data
- Take the rows my Apps Script sends me
- Open Google search
- Type the text from column A into the search
How to use cURL to trigger an axiom.ai automation
CodeLearn how to use cURL to trigger your automation. This allows for your automations to be triggered using the command line.
Trigger a browser automation from Langflow
- Take a list of URLs sent to me by Langflow
- Open each one and scrape the title and price
- Add everything scraped to my Google Sheet