cxengage-javascript-sdk.modules.smooch-messaging

add-attachment

(add-attachment & args__9078__auto__)
CxEngage.interactions.smoochMessaging.addAttachment({
  interactionId: {{uuid}}, (required)
  file: {{HTML5 File}}
});

Store files attached temporary for current interaction.

Topic: cxengage/interactions/smooch-messaging/attachment-added

remove-attachment

(remove-attachment & args__9078__auto__)
CxEngage.interactions.smoochMessaging.removeAttachment({
  interactionId: {{uuid}} (required)
});

Remove stored file attached for current interaction.

Topic: cxengage/interactions/smooch-messaging/attachment-removed

send-attachment

(send-attachment & args__9078__auto__)
CxEngage.interactions.smoochMessaging.sendAttachment({
  interactionId: {{uuid}} (required),
  agentMessageId: {{uuid}} Identifier of agent's pending message.
});

Sends an attachment to all participants in the interaction.

Topic: cxengage/interactions/smooch-messaging/attachment-sent

send-conversation-read

(send-conversation-read & args__9078__auto__)
  CxEngage.interactions.smoochMessaging.sendConversationRead({
    interactionId: {{uuid}}, (required)
  });

Sends a conversation read event to all participants in the interaction.

Topic: cxengage/interactions/smooch-messaging/conversation-read-agent-received

Possible Errors:

send-message

(send-message & args__9078__auto__)
CxEngage.interactions.smoochMessaging.sendMessage({
  interactionId: {{uuid}}, (required)
  message: {{string}}, (required)
  agentMessageId: {{string}} Identifier of agent's pending message.
});

Sends a message to all participants in the interaction.

Topic: cxengage/interactions/smooch-messaging/message-received

send-typing-indicator

(send-typing-indicator & args__9078__auto__)
  CxEngage.interactions.smoochMessaging.sendTypingIndicator({
    interactionId: {{uuid}}, (required)
    typing: {{boolean}}, (required)
  });

Sends a typing indicator to all participants in the interaction.

Topic: cxengage/interactions/smooch-messaging/typing-agent-received

Possible Errors: