Sweet Potato

Categories
Blog salesforce

Create Your First AI Agent in Salesforce

Salesforce leverages Einstein AI and Agent force to provide intelligent virtual agents that help businesses improve customer service. By automating responses and streamlining processes, these AI-driven agents assist in handling inquiries efficiently, ensuring a seamless customer experience.

1. Enable Einstein in Salesforce

Einstein AI must be activated for agent functionalities to work properly. Follow these steps:

  1. Open Setup in Salesforce.
  2. In the Setup Quick Find search bar, type Generative AI and select Einstein Setup.
  3. Click the Turn on Einstein toggle to enable AI capabilities.

2. Publish the Experience Cloud Site

Agents are deployed via Coral Cloud’s Experience Cloud site. To prepare for deployment, follow these steps:

  1. In the Setup Quick Find, search and select All Sites.
  2. Click Builder next to the coral-cloud site. If a popup appears, click OK.
  3. Click Publish in the upper-right corner.
  4. Click Publish in the confirmation window.
  5. Click Got It after successful publication.
  6. Click the Experience Builder Menu icon.
  7. Select Salesforce Setup.
  8. Refresh your browser to reload Setup. You can now close the Experience Site browser tab.

3. Create a New Agent

Now that the Experience Cloud site is ready, create your agent by following these steps:

  1. In the Setup Quick Find, search for and select Agents.
  2. Click + New Agent.
  3. Select Agentforce Service Agent as the type.
  4. Click Next.
  5. Leave all topics as added and click Next.

4. Create a Custom Topic for Your Agent

After setting up the agent, define a relevant topic for its functionality

Remove the default topic by clicking the down arrow next to MigrationDefaultTopic and selecting Remove from Agent.

  1. Click the down arrow next to Manage the topics assigned to your agent, then select New Topic.
  2. Configure the new topic with the following details:
  1. Topic Label: Customer Experience Support
  2. Classification Description: This topic addresses customer inquiries and issues related to booking experiences at Coral Cloud Resorts, including making reservations, modifying bookings, and answering queries about experience details.
  3. Scope: The agent’s role is to assist customers in managing bookings for various experiences offered by Coral Cloud Resorts, ensuring smooth service and issue resolution.
  4. Instruction: If a customer inquires about Activities or Experiences, execute the Get Experience Details action and summarize the results for improved readability. Ensure customer identification before running this action.

5. Setting Up Agent Actions

Agent actions define the tasks your AI agent can perform. These actions allow the AI to interact with Salesforce objects, retrieve data, and update records. To set up agent actions:

  1. Navigate to Agent Actions: Go to Agent Studio and click on Agent Actions.
  2. Create a New Action: Click on New Agent Action and provide a name for the action.
  3. Define Action Parameters: Specify the required inputs for the action, such as record ID, customer name, or case number.
  4. Choose Action Type:
    1. Data Retrieval: Fetch relevant data from Salesforce records (e.g., retrieving an account’s open cases).
    1. Record Creation: Create new records in Salesforce (e.g., logging a support case).
    1. Record Updates: Modify existing Salesforce records based on AI responses.
  5. Configure API Calls (if needed): If the action involves integrating with external systems, configure API calls to fetch or send data.
  6. Test the Action: Run a test to ensure that the action works as expected and returns the correct results.
  7. Save and Deploy: Once validated, save the action and assign it to the appropriate agent.

Conclusion

By following these steps, you have successfully enabled and configured an AI-powered agent in Salesforce using Einstein and Agentforce. This setup ensures seamless customer service interactions, helping businesses provide enhanced support and streamline customer inquiries efficiently.

Leave a Reply

Your email address will not be published. Required fields are marked *