Skip to content
Proud to collaborate with Microsoft for Startups

wasender.presence.send_update ​

Send a presence update to a recipient

Send a presence update to a recipient (POST /send-presence-update).

Inputs:

  • cloud_connection_uuid: UUID — the cloud connection holding the Wasender token.
  • to: str — recipient (phone number, group JID, or channel ID).
  • presence: str — presence state (typing/recording/paused/available/unavailable).
  • duration: int — seconds to hold the presence before auto-clear, if supported.

Outputs (terminal state_data):

  • to: str — echoed recipient JID.
  • presence: str — echoed presence state applied.
  • success: bool — whether the presence update was accepted.
  • message: str — provider confirmation message.
  • provider_metadata: JSON — raw provider response (opaque).

Plugin required: context.get_plugin("wasender") must expose .api_token.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-wasender
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
cloud_connection_uuiduuidYes—Cloud connection holding the Wasender credential
tostringYes—Recipient (phone number, group JID, or channel ID)
presencestringYes—Presence state: typing/recording/paused/available/unavailable
durationintegerNo—Seconds to hold the presence before auto-clear, if supported

Output Schema ​

FieldTypeRequiredDefaultDescription
cloud_connection_uuiduuidNo——
tostringNo—Echoed recipient JID
presencestringNo—Echoed presence state applied
successbooleanNo—Whether the presence update was accepted
messagestringNo—Provider confirmation message
provider_metadatajsonNo—Raw provider response (opaque)
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerintegerNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "wasender.presence.send_update",
  "initial_data": {
    "cloud_connection_uuid": "value",
    "to": "value",
    "presence": "value"
  }
}