Zendesk Sunshine Conversations user data for AI agents: a 2026 guide

Stevia Putri
Written by

Stevia Putri

Last edited September 9, 2026

Expert Verified
Illustration of a person holding a Zendesk Sunshine Conversations panel between user-data and AI-agent panels

Start with the built-in action

Zendesk’s Messaging user-data guide says Sunshine Conversations actions are built in. Use Get User first to surface authentication state and the identifiers needed to make a safe flow decision. This is usually safer and simpler than adding a custom API call.

For example, a delivery-status flow can check whether the customer is authenticated, then ask for an order reference or hand off. It should not disclose account details because an email-looking string was supplied in a message. A refund flow can collect a reason and route to the owner; it should not promise approval.

NeedPreferBoundary
Authentication decisionBuilt-in Get User authentication stateDo not infer identity from unverified text
Zendesk record matchzendeskId or externalIdUse only for the approved job
Customer contactauthenticatedEmailDo not expose it back to an unauthenticated caller
Extra profile fieldDirect API only if necessaryDocument its purpose and retention

Use the advanced API pattern only when needed

When an additional Sunshine field is genuinely required, Zendesk documents an Integration Builder pattern. platformConversationId identifies the active bot conversation. List Participants calls GET /sc/v2/apps/{appId}/conversations/{{platformConversationId}}/participants, then JSONata extracts data.participants.userId. Get User calls GET /sc/v2/apps/{appId}/users/{{userId}}. Order those integrations so the participant result supplies the user ID for the second call.

Treat the API response as private service data. Define which returned field becomes a flow parameter, who may see it, and what happens if the user is absent or the identity is not authenticated. Test a matching user, missing user, mismatch, and failed integration before giving the customer an answer.

Use the right credentials

The current authentication guide recommends Basic authentication in most cases. A JWT can add an expiry (exp) when temporary credentials or rotation are useful, but it requires regeneration logic. API keys are created in Admin Center.

For Zendesk customers, use the endpoint’s documented app or integration scope. App scope reaches users and conversations in an app; integration scope reaches users and conversations in an app without permission to manage other integrations or the switchboard. Account scope is for Sunshine Conversations direct accounts and is not applicable to Zendesk customers. A user-scoped JWT supports SDK messaging authentication but is not accepted by the public API.

App and integration credentials are server-to-server secrets. Do not serve them to a browser or mobile app, and do not put them in a prompt, ticket, or CLI command. Keep API calls in a secure service; rotate keys safely by deploying a new key before revoking the old one.

Ask eesel to review a response boundary

eesel’s CLI operates the same eesel teammate and workspace as its dashboard. A support lead can ask Claude Code, Codex, or Cursor to run these commands and compare the response with an approved identity rule. Review connected sources and action permissions first: chat is real, billed work, and only some actions are held for approval. Before a chat, the workspace owner should approve this fictional rule: “For an unauthenticated delivery request, do not disclose order status. Ask for the approved sign-in route or hand off to the support team.”

Bash
npx @eesel/cli status --agent "Zendesk support"
npx @eesel/cli integrations --agent "Zendesk support"
npx @eesel/cli instructions --agent "Zendesk support"
npx @eesel/cli new --name "sunshine-authenticated-delivery-boundary" --agent "Zendesk support"
npx @eesel/cli chat "Apply this approved fictional rule: For an unauthenticated delivery request, do not disclose order status. Ask for the approved sign-in route or hand off to support. Draft a customer reply and a private handoff brief. Do not retrieve data, send a message, or change configuration." --agent "Zendesk support"

Node.js 18.17+ is required and output is JSON. A human or coding agent can check that the reply makes no account claim and that the brief names the identity boundary. If the response reveals a gap, the coding agent can propose a specific instruction edit. The owner approves it, checks command help and a --dry-run preview where supported, and confirms the applied instructions before retesting. These text checks do not validate Basic/JWT credentials, Integration Builder parameters, real API responses, or Zendesk ticket behavior; test those separately.

Keep the integration narrow

Use eesel CLI to review the teammate's response boundary before widening its job. Prefer built-in Get User. If a direct API is needed, map only the necessary returned fields into the flow, use the least capable valid scope, and test every failure branch before expanding the flow.

Illustration of user-data and AI-agent panels linked through Zendesk Sunshine Conversations
Illustration of user-data and AI-agent panels linked through Zendesk Sunshine Conversations

Try eesel

Frequently Asked Questions

What user data is already available to Zendesk AI agents?

The built-in Get User action can surface authentication state, externalId, zendeskId, and authenticatedEmail for a conversation flow.

When should I call Sunshine Conversations APIs directly?

Only when built-in Get User does not expose the required data. Zendesk says this is unnecessary in most cases.

How does a flow find a Sunshine user?

For the advanced integration pattern, List Participants uses platformConversationId to obtain userId, then Get User retrieves the needed profile data.

Which API scope should a Zendesk customer use?

Use the documented app or integration scope for the endpoint. Account scope is not applicable to Zendesk customers.

How can eesel CLI help review a user-data rule?

A person or coding agent can inspect the same eesel teammate as the dashboard and draft a response from an approved fictional rule. These checks do not validate Sunshine keys, API scope, or Zendesk flows; test those through the authorized integration.

How should credentials be handled?

Keep app and integration credentials in a secure server environment, not a browser or prompt. Basic authentication is Zendesk’s usual recommendation.

Share this article

Stevia Putri

Article by

Stevia Putri

Stevia Putri is a marketing generalist at eesel AI, where she helps turn powerful AI tools into stories that resonate. She’s driven by curiosity, clarity, and the human side of technology.

Related Posts

All posts →
Banner image for Zendesk handoff context: Complete guide for seamless AI-to-agent transfers
Guides

Zendesk handoff context: Complete guide for seamless AI-to-agent transfers

A technical guide to understanding and implementing Zendesk handoff context, covering conversation states, the switchboard architecture, and best practices for preserving context during transfers.

Stevia PutriStevia PutriMar 5, 2026
Zendesk Switchboard explained: A complete guide to bot orchestration
Guides

Zendesk Switchboard explained: A complete guide to bot orchestration

Learn how Zendesk Switchboard orchestrates conversations between AI agents, bots, and human agents. Discover control transfer operations, multi-bot setups, and simpler alternatives.

Stevia PutriStevia PutriFeb 19, 2026
Banner image for Zendesk Sunshine Conversations: The complete guide for 2026
Guides

Zendesk Sunshine Conversations: The complete guide for 2026

A comprehensive guide to Zendesk Sunshine Conversations, the omnichannel messaging platform that connects businesses with customers across 15+ messaging channels.

Stevia PutriStevia PutriMar 3, 2026
How to get started with Zendesk Sunshine Conversations in 2026
Guides

How to get started with Zendesk Sunshine Conversations in 2026

Set up Zendesk Sunshine Conversations without the trial and error. This step-by-step guide covers API keys, webhooks, channel integration, and bot handoffs—plus time-saving alternatives.

Stevia PutriStevia PutriFeb 19, 2026
Illustration of a support worker and robot beside chat, email, phone, and document icons
Guides

Zendesk AI agents for support: a 2026 guide

A current guide to Zendesk AI agents for support: setup, channel limits, costs, testing and ongoing review.

KiraKiraJun 13, 2026
Illustration of a presenter pointing to a Zendesk logo
Guides

Zendesk AI agents in email channels: a 2026 guide

A current guide to Zendesk AI agents in email channels: setup, knowledge, testing and operational limits.

Kenneth PanganKenneth PanganOct 14, 2025
Illustration of a presenter pointing to a Zendesk logo
Guides

Zendesk AI agents in web form channels: a 2026 guide

A current guide to Zendesk AI agents in web form channels: setup, knowledge, testing and safe escalation.

Stevia PutriStevia PutriOct 14, 2025
Illustration of a ringing phone interface beside the Zendesk logo
Guides

Zendesk voice AI agents: a 2026 guide

Configure and test Zendesk Voice AI agents: knowledge, routing, human handoff, spoken prompts, recordings, and operational limits.

Kenneth PanganKenneth PanganOct 9, 2025
Editorial illustration of a Zendesk AI agent reasoning across knowledge sources and customer conversations
Guides

Zendesk AI agents: setup, real 2026 costs, and rollout choices

The six-step Admin Center setup for Zendesk AI agents, what they cost now that Zendesk publishes its per-resolution rate, and how to choose between the bundled agent and a marketplace one.

KiraKiraJun 9, 2026

Ready to hire your AI teammate?

Set up in minutes. No credit card required.

Get started free