SendMessage

Send a message to users/actors.

SendMessage(
    message: str,
    actorIds: List[str],
    **arguments: str,
)

Where:

  • message: The message string you want to send.
  • actorIds: List of actor IDs to whom the message needs to be sent.
  • **arguments: Arbitrary arguments sent along with the message.

Example 1

Send a "Test message" to the current user.

{{SendMessage(message="Test message", argument1="value", testValue="argument value 2")}}

Where:

  • argument1 and testValue are the arguments that will be sent to the user along with the message.

Example 2

Send a "Test message" to the user with the email: [email protected]

{{SendMessage(message="Test message", actorIds=GetActors(externalId="[email protected]", integrationIdn="email", connectorIdn="gmail"))}}

Example 3

Send a "Test message" to all users who have an actor with integrationIdn="sendbox" and connectorIdn="mysendbox."

{{SendMessage(message="Test message", actorIds=GetActors(integrationIdn="sendbox", connectorIdn="mysendbox"))}}

Example 4

Send a "Test message" to the current user on the connector with integrationIdn="sendbox" and connectorIdn="mysendbox."

{{SendMessage(message="Test message", actorIds=GetActors(personaId=GetUser(field="id"), integrationIdn="sendbox", connectorIdn="mysendbox"))}}