Skip to main content

action.inject

Inject a message into the conversation to be translated and spoken to the specified party.

This action is designed for use on active calls that have an existing translation session running. You can send this action via the Call Commands REST API, or include it in a SWML section executed via transfer or execute during a call.

action.inject
objectrequired

An object that contains the inject parameters.

inject Parameters

inject.message
stringrequired

The message to be injected.

inject.direction
stringrequired
Default: local-caller

The direction of the message.
Possible Values: "remote-caller", "local-caller"

Example

live_translate:
action:
inject:
message: This is an injected message.
direction: remote-caller