How to create a Service Case within an Interaction from Agentic Email?

Hi Team,

We are currently working on a POC using Pega Customer Service with Agentic Email.

Our current flow is:

  1. An email is received and processed through Agentic Email.
  2. We have configured an Agent with a tool to create an Interaction case.
  3. Based on the instructions provided to the Agent, the Interaction case is created successfully.
  4. After creating the Interaction, we also need to create a Service Case within the same Interaction context.

The challenge we are facing is how to pass the newly created Interaction context back to the Agent/tool so that the Service Case is created under that specific Interaction.

For example:

Agentic Email → Agent → Create Interaction → Create Service Case within that Interaction

What is the recommended approach for implementing this?

Do we need to pass the Interaction case ID/context explicitly to another tool that creates the Service Case, or is there a standard Pega Customer Service approach/API for creating a Service Case within an existing Interaction?

Any guidance or examples would be greatly appreciated.

Thanks,
Avinash

You can create a Tool for Each Service Case and pass the Context Id as Interaction case ID.