rpcAiMessage
Inject a message into the AI agent running on another call. Useful for cross-call coordination, such as notifying a held caller’s agent about a status change or instructing it to relay information.
Parameters
callId
Call ID of the target call whose AI agent should receive the message.
messageText
The message text to inject into the target AI’s conversation.
role
Role for the injected message. Typically "system" for instructions.
Returns
FunctionResult — this, for chaining.