Skip to main content

Hangup Methods

Dialgen offers two methods for intelligent call termination:

Silence Detection

Automatically end calls when no audio is detected:
  • Unit: Seconds
  • Default: 10
  • Recommended: 8-15 seconds

How It Works

  1. Timer starts when agent finishes speaking
  2. Timer resets if user speaks
  3. If timer reaches threshold, call ends
  4. Hangup message plays (if configured)
  5. Call terminates
Too short may disconnect during natural pauses. Too long wastes time and credits.

Prompt-Based Detection

Add hangup logic to your agent prompt:

Example Prompt

Prompt-based detection relies on AI interpretation and may not be 100% accurate. Test thoroughly.

Hangup Messages

Configure a custom closing message:

Available Variables

  • {name} - Contact’s name
  • {company} - Contact’s company
  • {email} - Contact’s email
  • Any custom metadata variables

Examples

Professional:
Friendly:
Multilingual (Spanish):

Combining Methods

Use both silence detection and prompt-based hangup:

Benefits

  • Silence detection: Catches abandoned calls
  • Prompt-based: Natural, context-aware endings
  • Hangup message: Professional closing

Hangup Status Codes

Track why calls ended:
Status codes are available in call metrics and webhook payloads.

Troubleshooting

Calls Ending Too Early

Solutions:
  • Increase silence timeout to 15-20 seconds
  • Make hangup conditions more specific
  • Review call recordings

Calls Running Too Long

Solutions:
  • Decrease silence timeout to 8-10 seconds
  • Add explicit hangup conditions to prompt
  • Implement duration limits

Next Steps

Duration Limits

Set maximum call duration

Call Status

Monitor call status and lifecycle