Vapi Integration (Processing Events)

The Vapi integration supports two events:

  • call_ended: This event is triggered whenever a user or an Agent hangs up the phone.
  • call_aborted: This event is triggered whenever a phone call cannot be started or is finished unexpectedly.

You can subscribe to these events to allow your Agent to process these situations according to its flow.

  1. Navigate to your agent's Flow.
  2. Click the plus icon next to the Event Subscription section on the left-side panel.
  3. Under the "Event Idn," select "call_ended" or "call_aborted" from the dropdown.
  4. Under "Integration," select "vapi" from the dropdown.
  5. Under "Connector," select “vapi_[phone number]” from the dropdown or whatever you named your Vapi connector.
  6. Under "Skill selector," select "skill_idn" from the dropdown. You are telling your flow to select a specific skill to activate when the event is triggered.
  7. In this case, you want to activate the skill your agent will use when the call is ended or aborted. Select it from the "Skill name" dropdown.
  8. Add an "Event description." This field is optional but will help in the future when identifying the purpose of an event from a complex flow containing multiple event subscriptions.
  9. Click Create to save the event.