---
schema_version: "1"
id: 659a94d94dcb5df57593b6320fd0afb55e9ebffffc9a7627a805a9c8d75abbf8
title: Support Agentforce Service Agents
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/messaging-partner/guides/create-agentforce-service-agent.md
canonical_url: https://developer.salesforce.com/docs/service/messaging-partner/guide/create-agentforce-service-agent.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 79b0e9855f8fee5285b5509c95796512bac4454032a10aff3fb9f76548d77047
products:
  - Bring Your Own Channel for Messaging
  - Service Cloud Developer Content
---
# Support Agentforce Service Agents

To help your customers efficiently set up an AI agent with Bring Your Own Channel for Messaging, create a sample outbound Omni-Channel flow and include it in your managed package. This outbound flow escalates a conversation from an AI agent to a rep when needed. When the Salesforce admin sets up the AI agent, they associate the agent with this outbound flow.

For your package, we recommend creating a flow configuration that reflects the expected business logic of your customers. Before you package the flow template, optionally test it to ensure that it's properly set up.

Before you begin, verify that you’ve [enabled Bring Your Own Channel for Messaging](https://developer.salesforce.com/docs/service/messaging-partner/guide/messaging-partner-setup.md).

1. Follow the steps in the [Route Work Items to a Specific Agent](https://help.salesforce.com/s/articleView?id=service.omnichannel_route_to_specific_agent.htm) Salesforce Help page to create an outbound Omni-Channel flow. The Salesforce admin uses this flow as a template to create the outbound flow for the AI agent. When you save the flow, select **Template** to save it as a template.
2. Test the flow. This step in optional. Follow the steps to [Set Up an Agentforce Service Agent for Bring Your Own Channel](https://help.salesforce.com/s/articleView?id=service.messaging_byoc_ccaas_ai_agent.htm). During the setup process, you'll associate the agent with the sample outbound flow you just created. Adjust the sample flow as needed.
3. [Create the managed package](https://developer.salesforce.com/docs/service/messaging-partner/guide/create-managed-package.md), adding the outbound Omni-Channel flow template to the package.

## Configure Agentforce Service Agent Progress Indicators

To let messaging end users know that an AI agent is actively engaged in their conversation, set up your integration to support the Show Agentforce agent progress indicator setting. Learn more at [Configure Agentforce Service Agent Progress Indicators](https://developer.salesforce.com/docs/service/messaging-partner/guide/progress-indicators.md).

## Support Citations in Agent Responses

Agentforce Service Agent can include citations in its responses, providing source references that help build trust in AI-generated content. When the agent generates a response using knowledge articles or other source materials, it automatically includes citation data in the outbound message payload. See [Add Citations in Agent Responses](https://developer.salesforce.com/docs/service/messaging-partner/guide/citations.html) for more information.

## Proactively Start a Messaging Session with Agentforce Service Agent

Optionally, set up your integration to enable the AI agent to proactively initiate conversations and send the first message to an end-user. For example, the agent can engage with users on third-party self-service portals without waiting for the end-user's initial message.

Call the Establish Conversation API (`POST /api/v1/conversation`) upon an event, such as when a chat widget is opened on your platform. This API execution returns a `conversationIdentifier` value and messaging session ID. Optionally, include `routingAttributes` in the payload to [support custom parameters](https://developer.salesforce.com/docs/service/messaging-partner/guide/add-custom-objects.html).

If the routing owner is Salesforce (`routingOwner` is `Salesforce` in the Conversation Channel Definition record), Omni-Channel routes the conversation. An AI agent proactively starts a conversation and sends a welcome message by using platform events.

**See Also**

- _Salesforce Help_: [Set Up an Agentforce Service Agent for Bring Your Own Channel](https://help.salesforce.com/s/articleView?id=service.messaging_byoc_ccaas_ai_agent.htm)
- _Salesforce Help_: [Route Work Items to a Specific Agent](https://help.salesforce.com/s/articleView?id=service.omnichannel_route_to_specific_agent.htm)
- _Salesforce Help_: [Agentforce Service Agent](https://help.salesforce.com/s/articleView?id=service.service_agent_overview.htm)
