- Python
- TypeScript
For outbound calls,
reach_person() handles the critical first step: confirming you have the right person on the line before proceeding. It automatically handles answering machines, gatekeepers, wrong numbers, and refusals.signature
example.py
What happens on the call
- Python
- TypeScript
When
reach_person() is invoked, the agent automatically:- Greets whoever answers and introduces itself (organization + purpose).
- Asks for the contact by name. If someone else answered, asks to speak with or be transferred to the contact.
-
Determines availability and records the contact’s availability in a
contact_availabilityfield. -
Fires
agent.on_reach_personwith the outcome key. The five default outcomes are:"available"— the intended contact is on the line."unavailable"— someone else or an IVR answered and the contact could not be reached."voicemail"— an answering machine or voicemail system was reached."wrong_number"— the number does not belong to the contact."do_not_contact"— the contact asked not to be called again.
outcomes, those are used instead.
Voicemail handling
- Python
- TypeScript
Common mistake: redundant introductions
- Python
- TypeScript