Side conversations: threads on a ticket with people outside the requester conversation, such as a vendor by email, a Slack channel, or a child ticket for another group. The account must have side conversations enabled (the Collaboration add-on, or a plan that includes it).
Participants (to) are one kind per message: [{email, name?}],
[{user_id}], [{slack_workspace_id, slack_channel_id}],
[{support_group_id, support_agent_id?}] (child ticket) or
[{msteams_channel_id}].
Context Vars
zendesk.subdomain
Functions
base-path
fn (ticket-id: Any): Str
build-message
fn (subject: Str?, body: Str, to: Vec?, options: Map): Map
Build a {message: {subject?, body, to?, ...options}} body; options may add html_body, attachment_ids, external_ids. Unset parts are omitted. Exposed for testing.
close-side-conversation
fn (ticket-id: Any, side-conversation-id: Str): Any
fn (ticket-id: Any, side-conversation-id: Str, opts: Map): Any
Close a side conversation (state: "closed").
create-side-conversation
fn (ticket-id: Any, subject: Str, body: Str, to: Vec): Any
fn (ticket-id: Any, subject: Str, body: Str, to: Vec, options: Map): Any
fn (ticket-id: Any, subject: Str, body: Str, to: Vec, options: Map, opts: Map): Any
POST /tickets/{id}/side_conversations - Start a side conversation.
Example
::zendesk::side-conversations/create-side-conversation(ticket-id,
"Order 1042: shipping address",
"Can you confirm the address on file for this order?",
[{email: "fulfilment@vendor.example", name: "Vendor fulfilment"}])
get-side-conversation
fn (ticket-id: Any, side-conversation-id: Str): Any
fn (ticket-id: Any, side-conversation-id: Str, opts: Map): Any
GET /tickets/{id}/side_conversations/{side_conversation_id} - One side conversation.
list-side-conversations
fn (ticket-id: Any): Any
fn (ticket-id: Any, opts: Map): Any
GET /tickets/{id}/side_conversations - A ticket's side conversations: {side_conversations}.
reply-to-side-conversation
fn (ticket-id: Any, side-conversation-id: Str, body: Str): Any
fn (ticket-id: Any, side-conversation-id: Str, body: Str, options: Map): Any
fn (ticket-id: Any, side-conversation-id: Str, body: Str, options: Map, opts: Map): Any
POST /tickets/{id}/side_conversations/{side_conversation_id}/reply - Add a message to a side conversation. options: to (participants to add), html_body, attachment_ids.
update-side-conversation
fn (ticket-id: Any, side-conversation-id: Str, changes: Map): Any
fn (ticket-id: Any, side-conversation-id: Str, changes: Map, opts: Map): Any
PUT /tickets/{id}/side_conversations/{side_conversation_id} - Change state ("open"/"closed") or subject.