Inspiration

Many companies rely on email-to-case as a core customer support function, and automating repetitive tasks can significantly reduce the workload of customer support agents. By introducing Agentforce agents into the email channel, we are helping customer service to provide faster responses and enabling human agents to focus on more complex queries.

What it does

The system we built creates a case for every incoming email to the support email address. Once the case is created:

  • **Case Assignment:** It’s automatically assigned to an agent.
  • **Agent Response:** The agent then pulls relevant data (either from CRM data or Knowledge Articles) to respond to the customer.
  • **Escalation:** If the agent can't handle the case, it is transferred to the support executive queue for further action.

This process reduces human effort, especially for standard, repetitive queries, and allows human agents to focus on higher-level tasks.

How we built it

We used several Salesforce tools to build this process, each serving a specific purpose:

  • Email-to-Case: Converts emails into cases automatically, creating a structured process for handling customer requests.
  • Flows (Record Trigger Flow): Automatically triggers actions for all the incoming emails to a specified support address.
  • Invocable Apex Action: Allows you to integrate custom code into flows for more complex logic or system interactions like making API calls to Agentforce agent.
  • Email Templates: Standardizes communication and ensures that responses are consistent and professional.
  • Custom Objects: Created custom objects to store additional case-related data that doesn't fit into standard Salesforce objects, which increases the flexibility of the system.
  • Challenges we ran into

    Persisting the session for a stipulated time for all Agent interactions related to same case. Configuring prompt template to return “No Data Available” when information is not available in Knowledge Articles. Email Threading(Thread can view in both CRM and Emails)

    Accomplishments that we're proud of

    The first-time integration of agents in the email channel is a significant milestone! This marks an innovative step in making email-based customer support more dynamic and efficient by automating much of the repetitive tasks and enabling real-time responses.

    What we learned

    We learned how to programmatically call an agent from Apex. This capability is critical in automating agent assignments and improving the efficiency of customer service workflows.

    What's next for Agents On Email Channel

    The next step—focusing on processing and returning attachments—will make the system even more powerful.

    Conclusion

    By enhancing the email channel support to handle attachments, we not only improving efficiency but also enabling agents to provide more comprehensive and personalized support. This move will significantly reduce the time customer support agents spend on manual tasks and enhance the customer experience. As you continue to develop and refine this feature, you’ll be able to deliver an even more seamless and dynamic support process for customers.

    Built With

    • agentforce
    • apex
    • custom
    • datacloud
    • emai-to-case
    • emailtemplate
    • flows
    • object
    Share this project:

    Updates