Skip to main content

时间估计

Grant Access and Use the Agents

Grant Access to the Agent

With Agentforce for employees, you have control over who can access which agents. You can do this either by creating one or more permission sets, or by setting access within profiles. If you don’t grant access, even as the system administrator, you’re not able to use the agents you create. Your company wants you to create a permission set.

  1. In the Setup Quick Find, search for and select Permission Sets.
  2. Click New.
  3. For the label enter Grant Agent Access and the associated API Name appears as Grant_Agent_Access.
  4. For the description enter This grants access to the active Agentforce for employee agents.
  5. Click Save.
  6. Within the Apps section, scroll down and click Agent Access.
  7. Click Edit.
  8. You see a list of all active Agentforce for employee agents. Select General Agent and click Add, right arrow, to add it to the Enabled Agents section.
  1. Once the General Agent is in the Enabled Agents section, click Save.
  2. Click Manage Assignments then click Add Assignments.
  3. Check the box next to your name, click Next, click Assign, and click Done.

Use the Agent

Once you grant access to the agent, you can use the agent. Jump in and try out both of them.

Use the General Agent

  1. Click App Launcher Icon to open the App Launcher, then search for and select Sales. This redirects you to the Sales app.
  2. Click the Agentforce icon at the top right. This displays the Agentforce window.

Shows Agentforce icon highlighted.

  1. Click the General Agent dropdown arrow. You see a Select Agent box displaying the agents you have access to. If you aren’t assigned any agents, you don’t have the Select Agent option, and if you have access to even more agents, you see them all in this list.
  2. You can select which agent you want to use. Keep General Agent selected and click Select.
  3. In the General Agent window, enter Tell me about Sofia Rodriguez.
  4. Note: A selection box may appear since there’s both a user and a contact with the name Sofie Rodriguez. If a box does appear, select the Contact and click Submit.

Shows the Agent response saying it found multiple records and providing the choice of User or Contact. Contact is selected.

  1. Read through the summary of Sofia’s contact record, then click Sofia Rodriquez. This opens her contact record to the left of the Agent, allowing you to review additional information about her.
  2. Because of her interest in Adventure Activities, you decide to send her an email inviting her on an upcoming Biking Expedition in a couple of weeks. In the General Agent window type, Generate an email inviting Sofia on a Biking Expedition in two weeks.
  3. Read over the generated email, click the down arrow next to Copy Draft, and click Send Email.
  4. An email window appears, allowing you to modify the email—feel free to adjust it, then click Send.
  5. From Sofia’s contact record on the left, click Activity. You now see the Invitation Email that you just sent.

You successfully created an Agentforce for employee agent! You can further test this and other agents you create. You might find that sometimes they don’t return what you expect. When that happens, look at their associated topics and actions to ensure what you’re trying to accomplish is possible. You might have to add more topics, modify topics, add actions, or create actions from scratch.

Using Your Agent in Slack

You can use any Agentforce for employee agents you create in Slack. This requires additional setup work and a Slack environment, and isn’t covered in this project. You’re welcome to use the same developer edition org you’re in now to complete these two Trailhead badges.

There’s a General Slack topic that you can add to the agent you created above. This provides your agent additional abilities within Slack including:

  • Creating a Slack canvas.
  • Updating a Slack canvas.
  • Looking up a Slack user.
  • Searching Slack.
  • Sending a Slack Direct message.

This topic isn’t required in order to use agents in Slack, it just provides agents additional Slack actions. Once you get Slack and the connection created, you can make the General Agent you created available in Slack. For now, you’re all set to use your new General Agent with the topics you’ve set up so far.

在 Salesforce 帮助中分享 Trailhead 反馈

我们很想听听您使用 Trailhead 的经验——您现在可以随时从 Salesforce 帮助网站访问新的反馈表单。

了解更多 继续分享反馈