Webhooks
Let an event in another app start work for your agent. Choose what starts it, what the agent does, and where the result goes.
A webhook lets another app start a job for your agent. A payment, customer inquiry, or updated record can trigger a summary or alert without you checking the app each time.
Webhooks let another system start the work
Another system sends an event to Hyperagent. You decide which events should start work and what the agent should do.
Let a change start the work
Event
Another app reports a change
Work
Your agent does the job and produces a result
The service sends an event to your webhook endpoint, the receiving address in Hyperagent. The event includes a payload: details such as a record’s status, ID, or link. Your agent uses that information with your saved instructions to do the job.
Configure a webhook on your agent
You can also create the webhook in the agent’s Automations settings instead of asking in a thread. You choose the event source and define the same job yourself. This is a different way to configure the automation, not a different kind of agent run.
Choose which events should start work
Start with the outcome. Ask what must happen before the agent has enough information to do the job. A summary of new customer inquiries should start when a conversation opens. Reviewing a completed sale should start when payment arrives, not every time the order changes.
Connect the app that sends the event
Hyperagent gives your webhook an endpoint URL: the address where the other app sends events. A secret helps Hyperagent check that those events came from the expected sender. Treat it like a password for the connection.
Save the webhook to get its endpoint URL
After you save, Hyperagent provides the receiving address for this webhook. Give that URL to the app or script that will notify Hyperagent. Some service connections register it for you; otherwise, add it in the sending app’s webhook settings. Follow the sender connection steps for setup examples.
The sending app’s webhook settings determine which option to use: get its secret and give it to Hyperagent, or give it a secret generated by Hyperagent.
Give Hyperagent the service’s secret
If the app provides a signing secret, give that secret to Hyperagent. The app uses it to sign each event, and Hyperagent checks that signature when the event arrives.
- Choose the app when it appears in the picker. Hyperagent already knows how to verify its deliveries. Depending on the app, Hyperagent handles registration or an owner or admin registers the endpoint URL in the source app.
- Choose Generic service for another app. Match the authentication method in that app’s webhook settings, then register the endpoint URL with it. The table below explains the supported methods.
What Hyperagent checks
Choose the method the sending app already uses. Hyperagent checks each delivery against that method before it can start work.
| Method in Hyperagent | What Hyperagent verifies |
|---|---|
| HTTP Basic auth | The request includes the password you configured. Hyperagent checks the password, not the username. |
| HMAC in a header | The sender’s signature matches the message Hyperagent received. The signature must be in the expected place and format. This option does not check when the sender signed the request. |
| Standard Webhooks / Svix | The signature matches the message ID, timestamp, and body. Hyperagent also checks that the timestamp is within five minutes of receipt. |
| Timestamped HMAC | The signature matches the message parts specified by the service, including the timestamp. The timestamp must be within the configured time window. |
A signature is proof the sending app creates using a shared secret. Hyperagent checks it against the message it received. A timestamp lets Hyperagent also check how recent the delivery is. That is separate from ignoring repeat events: a recent event can still be a repeat.
If the proof is missing, incorrect, or outside the required time window, the request does not start work. Authentication does not check that the event is useful or give your agent permission to read or change other records.
Give your sender a Hyperagent secret
If your app or script can send a secret you supply, choose Manual webhook. After you save, Hyperagent provides an endpoint URL and, by default, a shared secret. Configure the sender to include it in the X-Hyperagent-Webhook-Secret header with every event. Copy the secret when it appears: it’s shown only once.
Receiving events doesn’t grant access to the app
The webhook lets the sender deliver event details to Hyperagent. To look up or change other records, connect the app and give your agent access. Check that the selected account has the permissions the job needs.
Define how your agent should act
The instructions define the job. The run settings decide where it happens, where the result goes, and what changes the agent may make.
Choose where the task runs
- Start a new thread when every event should stand on its own. The agent brings its saved skills and permitted knowledge, not conversations from earlier jobs.
- Continue an existing thread when earlier decisions in that conversation should inform the next job.
- Group events by a value, where available, when updates about the same record should share a thread.
Name new threads so you can find them
Give your agent a thread naming hint when the webhook creates threads. Use a detail from the event, such as a record name or number, so you can recognize the job later.
Choose where to deliver results
The choices you see depend on your workspace and what the agent has connected.
| Destination | Audience | Where the work or result goes |
|---|---|---|
| Run thread only | Current thread | Keep the result in the Hyperagent task. |
| Room | Group | Start a conversation in a Hyperagent room. Any agent in the room can answer, using the room’s write access. |
| Slack channel | Group | Send the result to a configured Slack channel. |
| Slack DM (to you) | You | Send the result to you in Slack. |
| Telegram | Selected chat | Send the result to Telegram when available. |
| iMessage (to you) | You | Continue your iMessage conversation’s thread. |
| iMessage group | Group | Continue an available group’s thread. |
| WhatsApp (to you) | You | Send the result to your WhatsApp chat when available. |
| Email (to you) | You | Send the result to you by email. |
Check who can see a shared destination before delivering customer or business details there.
Choose the model for this job
- Use the default to keep the agent’s model, or the model of the thread you continue.
- Choose a model for this automation if the job needs a different one. A new thread keeps that model. In a continued thread it applies only to the webhook run, not to later work in that thread.
Decide what the agent may change
- Read-only work: A summary or recommendation doesn’t have to change records in the source app.
- Changes to another app: The agent needs the right tool and permissions, plus any required approval. Choose when webhook runs may make changes. Delivering a result doesn’t grant that access.
Caps and repeats
- Daily cap: Limit how many agent runs the webhook starts in a day, regardless of whether the events repeat.
- Repeat detection: Skip events with the same chosen value within a time window. An event ID can identify a resent notice. A record ID can also group different notices about the same record; use it only if you want to skip those too.
Filters and code
Choose which events need an agent run
Your webhook can receive an event without starting agent work for it. Use a filter to admit only the events you want, or add a program to do a repeatable check before involving the agent. Choose the approach that fits the job below.
Filter
Checks the event details before work starts. Use Conditions for field comparisons or an Expression for a custom rule. An event that doesn’t match stops here, without spending model tokens on an agent run.
Code
An optional program does a repeatable job, such as comparing an event with a connected list. It can finish the job itself or pass a finding to the agent for judgment.
Event
An app reports a change
Filter
Does it match your conditions?
No match? The agent doesn’t start.
Work
Your agent does the job
Choose the check your job needs
Conditions compare fields without code. Expression lets you combine checks in a custom rule written in Common Expression Language, or CEL. Both use information in the event; neither looks up other records. Code can perform that extra work when the job needs it.
You can configure filters before a live event arrives
Listed services supply suggested fields. Generic service and Manual webhook use paths you enter yourself; they don’t require a first delivery to unlock Conditions. Confirm the paths against the sender’s event documentation or an actual delivery. Save the webhook before adding an Expression or Code; it can stay paused while you configure them.
Check what passes and what stops. Try an event that should start work and one that should be excluded. For an optional field, also check an event without it. Run history shows whether the event reached the next stage.
Review what happened
Find the event in Run history. An acknowledgment shows Hyperagent received it. Use the status to see how far it got.
Check the result itself. Open the task, compare the output with your instructions, and confirm it arrived where you wanted it.
No result when you expected one? Find where the run stopped before sending another event.
| What Run history shows | What to check |
|---|---|
| Stopped at the filter | The event didn’t match. If you meant to exclude it, no agent task is expected. |
| Finished in the program or Stopped at the program | The program didn’t hand the event to the agent. Check whether that was the intended outcome. |
| Reached the agent | An agent task started. Open it and check what it produced. If you chose an external destination, check there too. |
FAQ
Set up or manage a webhook
Follow the webhook setup guide to choose a sender, connect it, and verify your first result.