N8N

Use N8N's Webhook node to receive StarAgent events and build self-hosted automation workflows. Works with both N8N Cloud and self-hosted instances.

Setup

  1. 1In N8N, create a new workflow and add a Webhook node as the trigger.
  2. 2Set the HTTP method to POST. Copy the Production URL (not the test URL).
  3. 3In StarAgent Setup, paste the N8N webhook URL and click Test.
  4. 4In N8N, click "Listen for Test Event" then send a test from StarAgent. N8N will detect all payload fields automatically.
  5. 5Add downstream nodes (IF, Set, HTTP Request, database, messaging, etc.) and activate the workflow.

Routing by event type

Add an IF node after the Webhook to route events differently.

Set condition to {{ $json.event }} equals "voicemail"

True branch = voicemail processing

False branch = incoming call only

Example workflows

  • Save every voicemail to a Postgres or MySQL database
  • Send a Telegram or Discord notification with the caller's name and transcription
  • Create an Airtable record for each missed call with all extracted fields
  • Download the voicemail audio via the recording_url and upload to S3 or Google Drive
Self-hosted tip. Make sure your N8N instance is publicly accessible (or use a tunnel like Cloudflare Tunnel or ngrok) so StarAgent can reach your webhook URL.