If you use a custom Sunshine Conversations integration, use this workflow to find the ticket ID linked to a Sunshine Conversations conversation ID in Zendesk Support. This helps you build custom workflows.
Follow these steps:
- Step 1: Add a custom field in your Zendesk tickets to store the conversation ID
- Step 2: Pass the conversation ID through metadata in your flow
- Step 3: Create a Zendesk webhook
- Step 4: Create a Zendesk trigger
- Step 5: Clear the metadata from the conversation
Step 1: Add a custom field in your Zendesk tickets to store the conversation ID
- Create a custom field for the conversation ID
- Add it to your ticket forms
Step 2: Pass the conversation ID through metadata in your flow
- In your flow, collect the conversation ID as metadata before you escalate to an agent through the Zendesk Agent Workspace integration. Use pass control.
- If you do not have a custom integration or bot, ask your developer to create a webhook in Sunshine Conversations to control the conversation. Then pass control to the Zendesk Agent Workspace integration, so Zendesk Support creates a ticket with the conversation ID in the metadata.
- The ticket now shows the conversation ID
For examples, see Using Messaging Metadata with a Zendesk bot to send page data to a ticket.
Step 3: Create a Zendesk webhook
- Create a Zendesk webhook
- Use a trigger to send that webhook to your third-party system or Sunshine Conversations. Include the ticket ID and the conversation ID in the payload.
This links the IDs when Zendesk Support creates the ticket. Use this information in your custom workflow. - You can update the Sunshine Conversation with the ticket ID as metadata in the conversation
Step 4: Create a Zendesk trigger
- Add a new trigger that runs when Zendesk Support creates a ticket
- In the Action, notify by active webhook and select the webhook you created earlier
Your system now receives a webhook from Zendesk Support every time a ticket is created. The payload includes the Sunshine Conversations conversation ID and the related ticket ID for your use case.
Step 5: Clear the metadata from the conversation
Disclaimer: This article is provided for instructional purposes only. Zendesk does not support or guarantee the code. Post any issues you have in the comments section or try searching for a solution online.