Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Salesforce · Agentforce Specialist

Channels, Omni-Channel, Security Context

Agentforce Specialist · Lesson 9 of 14 · 1:13:30

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the Salesforce Agentforce Specialist exam. In this lesson: connections, Omni-Channel flows and escalation, Enhanced Chat on a website, email, Slack, and voice, then the security context an agent runs in (the logged-in user or the agent user), why context variables do not restrict access, customer verification, and flows in system context. Includes three original practice questions, with Sunmeadow Solar, a fictional solar installer, as the example.

Study notes

The text of this lesson, to read at your own pace. Information as of December 2026.

Many channels, one question

Sunmeadow's customers will reach the agent through the website chat and by email, while technicians will use an agent in Slack. Each channel is connected in its own way. And on every channel, one question matters for security: whose permissions is the agent using?

Connections

A connection links an agent to a type of channel. It carries hidden instructions for the reasoning, because a reply in Slack and a reply on the phone are not written the same way. It also brings adaptive response formats, such as buttons, links, or images, chosen from the output of an action. You build the agent once, then add connections, and each type of agent accepts certain connections.

Omni-Channel routing

Messaging channels rely on Omni-Channel flows, with the Route Work action. An inbound flow brings a conversation from the channel to the agent, and each inbound flow points to one agent. An outbound flow sends the conversation elsewhere, such as to a service rep, a queue, or another agent. The escalation subagent starts that hand off, when the customer asks for a person, or when the case becomes sensitive.

Website chat

For a website, you use Enhanced Chat. In the builder, add the connection, set an escalation flow and an escalation message, and commit the agent version. Then create the channel, with its name, the domain of the site, and a fallback queue for when the agent is unavailable, and allow up to ten minutes for the deployment. Finally, publish, paste the code snippet into the site, on an external site or on Experience Cloud, and test it in a private window.

Email

Email is for service agents only, which answer incoming emails, grounded in data libraries. It needs Email-to-Case with verified routing addresses, and a Lightning email template, not a Classic one, which sets the structure of each reply. An email configuration links the template, the agent, and the addresses, and an Omni-Channel flow decides which cases go to the agent. Each reply says that AI wrote it, the customer can ask for a person, and there is no customer verification subagent on this channel.

Slack and voice

Slack is a channel for employee agents. You connect Salesforce and Slack, add the Slack connection, give users access, activate the agent, then install it in the workspace, and it respects each user's licenses and permissions. Voice is for service agents, with a voice connection, built in the new Agentforce Builder. A voice agent works in one language only, its default language.

Employee agents: the logged-in user

Now, who does the agent run as? An employee agent runs as the logged-in user. That user's profile, permission sets, field level security, and sharing rules decide what the agent can see and do. So there is no need to restrict its queries to that user's data, and the audit trail shows the person's name.

Service agents: the agent user

A service agent runs as the agent user, a dedicated user that must be granted each object, field, and action explicitly. Grant it the minimum it needs, and nothing more. A context variable, such as the contact on the messaging session, tells the agent who the customer is. But it does not restrict access, so without care, a customer could see anything the agent user can see.

Protecting customer data

So verify first: the standard customer verification subagent stores the customer's ID in a verified customer ID variable. Then limit flows and Apex to that customer's records, by filtering on the verified ID, and add filters that open subagents and actions only once the ID is set. With credential based verification on an Experience Cloud site, the agent runs as the logged-in site user instead. And a flow run by an action also has its own run setting, so a flow in system context reaches beyond the user's permissions.

Recap

Let's recap. A connection adapts one agent to a channel, and Omni-Channel flows route conversations in and out. Enhanced Chat serves websites, email and voice serve customers through service agents, and Slack serves employees. An employee agent runs as the logged-in user, with that user's permissions and sharing. A service agent runs as the agent user, so grant it the minimum, and remember that context variables do not restrict access. Verify the customer, filter on the verified ID, and gate subagents and actions until it is set.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. Sunmeadow wants one agent to write short replies in Slack and spoken-style replies on the phone, without building two agents. What makes this possible?

    • A separate agent for each channel
    • Channel rules repeated in every subagent
    • Each connection’s instructions and formats
    • A model that guesses the channel
    Show the answer

    Each connection’s instructions and formats

    Each connection carries its own hidden instructions and response formats, so one agent adapts to each channel. “A separate agent for each channel” is wrong, because a separate agent per channel is exactly what connections avoid. “Channel rules repeated in every subagent” is wrong, since repeating channel rules in every subagent is hard to maintain, and the connection already does it. And “A model that guesses the channel” is wrong, because the model does not decide the style of a channel, the connection does.

  2. Sunmeadow wants an agent to answer customer emails about warranties. Which statement is true?

    • It must be a service agent, with Email-to-Case
    • An employee agent can take this channel
    • It needs a Classic email template
    • The verification subagent runs on each email
    Show the answer

    It must be a service agent, with Email-to-Case

    The email channel is for service agents, and it relies on Email-to-Case. “An employee agent can take this channel” is wrong, because an employee agent serves employees, and cannot take this channel. “It needs a Classic email template” is wrong, since the email channel needs a Lightning email template, not a Classic one. And “The verification subagent runs on each email” is wrong, because there is no customer verification subagent on the email channel.

  3. An unverified chat visitor asks for the status of an installation, and the agent user can read every installation. What prevents a data leak?

    • The context variable already limits access
    • The agent user’s permissions alone
    • Running the status flow in system context
    • Verify first, then filter on the verified ID
    Show the answer

    Verify first, then filter on the verified ID

    Verification sets the verified ID, and filtering records on it limits the answer to that customer's own installations. “The context variable already limits access” is wrong, because a context variable identifies the customer, but does not restrict what the agent user can read. “The agent user’s permissions alone” is wrong, since the agent user can read every installation, so its permissions alone do not protect anyone. And “Running the status flow in system context” is wrong, because a flow in system context reaches even more data.