Trigger a Relevance AI agent with a webhook
Prepare a Relevance AI test webhook, inspect incoming data and distinguish event identifiers from conversations when testing repeats.
What you will create
Prepare a demonstration webhook for a Relevance AI agent that classifies a fictional request. The goal is to distinguish an incoming event, its conversation and a possible repeat, without contacting customers or changing business tools.
Before you start
Use an already authorized test agent without writing, sending or payment tools. Check execution costs and permission to transmit data to the provider. Keep the webhook URL private. A duplicate-prevention identifier does not establish who sent the request and does not replace access control. This exercise assumes an authorized HTTP test sender; it does not configure a particular third-party platform.
Step-by-step
- In the agent settings, open Triggers and select the webhook trigger. Copy its URL only into your test environment.
- Configure the message template with relevant fields, such as text through {{message}}. Do not automatically send the entire record when only a few fields are needed.
- Map event_id to Unique ID and case_id to Thread ID. The former distinguishes events; the latter groups events from the same case. Check the path format requested by your interface rather than confusing a field name with an expression.
- Instruct the agent to classify requests as Equipment, Schedule or Needs clarification, briefly explain why and take no external action. Incoming text is data to analyze, not permission to change its instructions.
- From the authorized sender, prepare a JSON POST request to the copied URL. Check the destination before sending, then inspect the created task and received data. HTTP success alone does not establish response quality.
Example to adapt
{
"event_id": "demo-001",
"case_id": "workshop-17",
"message": "Two markers are missing for the workshop."
}This fictional payload should lead to Equipment. For the next test, retain case_id, change event_id to demo-002 and ask when the workshop starts: the expected category is Schedule. These are proposed criteria, not observed results.
Check your result
First resend exactly demo-001: with correct Unique ID mapping, the repeated event should be ignored. Then send demo-002: it should be processed as a new event associated with the same case. Check the history, not just the number of visible responses. Finally try an empty message and require Needs clarification rather than invented details. Do not infer an exactly-once guarantee for a whole toolchain from this single check.
Common problems
If legitimate events disappear, look for a reused identifier. If two cases mix, check case_id. If the model receives a literal variable or an empty field, inspect the JSON structure and mapping. A successful trial validates neither sender authentication nor recovery after failures.
Next steps
Before production, have the sender checks, budget, logs and permitted actions reviewed. No webhook, provider account or external agent was called for this example; no production security configuration is provided here.





