Before you start
- A Sagepilot workspace and permission to manage integrations.
- A JSON object your system can POST over HTTPS. The payload must include an email, a phone number, or both, unless you enable push registration.
- The sample payload you configure must match the live payload shape. Nested objects become journey variables; arrays stay as single values.
How it works
- You configure Custom Webhook once for the workspace, then add a named trigger.
- You paste a sample JSON payload and map which fields are the customer’s name, email, and phone.
- Sagepilot gives you a unique POST URL for that trigger.
- Each accepted POST is queued. Sagepilot then resolves the customer, records the event, and starts live journeys whose trigger is that event name.
200 response means Sagepilot accepted the request into the queue. It does not mean a customer was found or a journey started.
Configure the integration
1
Open Integrations
In Sagepilot, go to Settings → Integrations. Custom Webhook is listed under Webhooks & Ops.
2
Connect Custom Webhook
Open Custom Webhook and click Configure Custom Webhook. You only do this once per workspace.
3
Open the trigger list
After setup, the page has Analytics and Configure tabs. Use Configure to add and manage triggers.
Add a trigger
Click Add trigger and complete the three steps. Trigger names must be unique in the workspace. Sagepilot stores them as lowercase with spaces converted to underscores (Lead Created becomes lead_created).
1
Payload
Enter the trigger name and paste one JSON object exactly as your system will send it. The body must be an object, not an array.
2
Identity
Map payload fields to Name (optional), Email, and Phone. Map Email, Phone, or both, unless you enable push registration.
3
Variables
Review the fields Sagepilot will create as journey variables. Mapped contact fields become customer fields instead of extra variables. Adjust the format when Sagepilot infers it incorrectly, then click Create trigger.
curl. You can also copy both later from the trigger page.
Send events
Copy the URL from the trigger page. The path is:application/json. Do not send form-encoded bodies.
Request rules
HTTP responses
Identity mapping
Sagepilot finds or creates the customer from the mapped email and phone. Phone values are normalized before lookup. Name is optional and updates the customer profile when present. If the live payload has neither a mapped email nor a mapped phone, Sagepilot does not record a customer event and does not start a journey. The HTTP response can still be200 because acceptance happens before customer resolution.
Journey variables
Unmapped payload fields become journey variables with sourcecustom. In templates, decisions, and message actions they appear as:
Custom webhook variables are available in journey decisions and templates. They are not available as native segment attributes.
Use in journeys
- Publish at least one trigger.
- Open Engage → Journeys and create a journey.
- In the trigger node, choose the event under Custom. The event name matches the trigger name (
payment_failed). - Use the payload variables in conditions, templates, and actions.
Register Android push tokens
Optional. On the Identity step, enable Push registration to store Android FCM tokens from the payload.- Select a Push Notifications channel that has Android / FCM configured.
- Map the FCM token field. This is required when push registration is on.
- Optionally map an external user ID field.
Monitor events
On the Custom Webhook home page:- Analytics shows volume over 24 hours, 7 days, or 30 days, counts by event type, and payload history.
- Configure lists triggers. Open a trigger for its webhook URL, identity mapping, sample payload, event trend, and recent events.
Update a trigger
Open the trigger, edit the sample payload, identity mapping, variable formats, or push registration, then click Save changes.- New fields become new journey variables.
- Fields you remove are deleted as journey variables. Journeys that still reference those variables will not resolve them.
- You cannot rename a trigger. Create a new trigger if you need a new URL path.
Troubleshooting
Related
Event webhooks
Send Sagepilot events outbound to your HTTPS endpoint.
Agent API
Send customer messages from a channel you own and receive replies.
Push notifications
Create the Android FCM channel used by webhook token registration.
Journeys
Start automations from custom webhook triggers.