Files involved
send_link_or_transfer.py
Get Booking Link.yaml
config/handoffs.yaml
Thedestination value passed to conv.call_handoff must match the name of a handoff defined in config/handoffs.yaml. All handoffs are defined in a single file under the handoffs key.
Per-environment sender number
If the sender number differs between environments, the simplest approach is to configureenv_phone_numbers directly in config/sms_templates.yaml, with no code required:
sandbox for Sandbox, pre_release for Staging and live for Live. The platform selects the right number automatically when conv.send_sms_template() is called. See the SMS setup reference for full template configuration options.
If you need more control, for example when using conv.send_sms() to send free-form content rather than a template, you can read conv.env directly. It returns sandbox, pre-release (the Staging environment) or live:

