aiHold
Put an active AI agent session on hold. The AI stops processing conversation while the call remains active. The caller may hear hold music or silence depending on the configuration.
Use aiUnhold() to resume the AI session.
Parameters
timeout
Maximum hold duration. The AI session automatically resumes after this timeout.
prompt
A prompt for the AI to speak before going on hold (e.g., “Please hold while I check on that.”).
Returns
Promise<Record<string, unknown>> — Server response confirming the AI hold.