Files involved
start_function.py
Stash the rawcaller_number at call start so it is available throughout the conversation.
caller_number_confirmed.py
Called when the caller has confirmed (or declined) sending the SMS. Branches on whethercaller_number is present, then validates the last-four match before sending.
Send Booking Link.yaml
SMS template (config/sms_templates.yaml)
All SMS templates are defined in a singleconfig/sms_templates.yaml file under the sms_templates key.
Related pages
SMS templates
Reference for SMS template structure and variable substitution.
Variables
How
conv.state variables are discovered and referenced.Anti-patterns
Why prose conditionals on variable presence are unreliable.
Conversation object reference
Full reference for
conv.caller_number, conv.send_sms_template, and all other conv attributes.Start function (platform)
When start function runs, what it can access, and how to use it for initialization.
SMS setup (platform)
Configuring SMS channels, sender numbers, and template structure.

