create_payment_action
create_payment_action
Static helper that builds a single action entry for a payment prompt.
Parameters
action_type
Action type.
"Say"— use text-to-speech"Play"— play an audio file URL
phrase
Text to speak (when action_type is "Say") or URL to play (when action_type
is "Play").
Returns
dict[str, str] — action dictionary for use in
create_payment_prompt().