You are here:
Workflow of Call Script and Pharmacy Benefits Summary
Pharmacy Benefits Verification includes two flows that use Einstein Generative AI to generate a call script and a pharmacy benefits summary. Understand the process by using Flow Builder, Context Services, Prompt Template, and Embedded AI. Learn how these capabilities work together, the key steps in benefits summary and script generation, and the prerequisites before making any customizations.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise and Unlimited Editions with Health Cloud or Life Sciences Cloud, and Einstein GPT Platform and Einstein GPT Prompt Builder Add-On licenses |
- Capabilities for Call Script and Benefits Summary Generation
Understand the capabilities that are used to generate call script and pharmacy benefits summary. - Key Steps to Generate Call Script
Explore how the different components fit together to generate the call script. Use Einstein Embedded AI to trigger a Salesforce flow that uses invocable action to map data into a suitable format. Use Context Service to hydrate the data related to call script, and pass the information into process automation tools. Create a prompt template to include specific instructions for generating a call script. - Key Steps to Generate Pharmacy Benefits Summary
Explore how the different components fit together to generate the benefits summary. Use Einstein Embedded AI to trigger a Salesforce flow that uses invocable action to map data into a suitable format. Use Context Service to hydrate the data related to pharmacy benefits summary, and pass the information into process automation tools. Create a prompt template to include specific instructions for generating a summary.
Capabilities for Call Script and Benefits Summary Generation
Understand the capabilities that are used to generate call script and pharmacy benefits summary.
- Einstein Embedded AI: Einstein Embedded AI integrates intelligent features directly into Salesforce workflows, providing predictive analytics, automated insights, and personalized recommendations to enhance decision-making and efficiency for all users.
- Flow Builder: Flow Builder is a declarative tool for building complex workflows. Elements in a flow can run various actions, such as aggregate data, create or update records, and assign values to resources. See Flow Builder.
- Invocable Actions: Use Invocable Actions to create reusable actions or methods that can be invoked from process builders, flows, or even external applications via REST API calls.
- Context Service: Use Context Service to retrieve and consume information in tools such as
Flows. Context Service comprises context definitions, which are a structured set of data
required to execute a process. Pharmacy Benefits Verification has predefined context definitions
called
PharmacyBenefitsSummaryandCallScriptForPharmacyBenefitsthat are used in benefits summary and call script generation. See Context Service. - Einstein Generative AI: Einstein Generative AI uses advanced models to generate human-like text and content, enabling dynamic content creation, automated responses, and improved customer interactions within Salesforce.
- Prompt Template: Prompt Template is a reusable prompt that includes placeholders for specific details about the context in which it’s being used. After you fill the placeholders with relevant data, you can use this prompt template to connect with Large Language Models (LLM) to perform specific tasks such as creating a summary or sending an email. See Create a Prompt Template
Key Steps to Generate Call Script
Explore how the different components fit together to generate the call script. Use Einstein Embedded AI to trigger a Salesforce flow that uses invocable action to map data into a suitable format. Use Context Service to hydrate the data related to call script, and pass the information into process automation tools. Create a prompt template to include specific instructions for generating a call script.
Review the key steps in the call script generation process built by using the predefined context definitions, invocable actions, and a screen flow.
- After initiating the benefits verification request, reps can generate the call script with just a click of a button.
- On any care program enrollee record page, under Pharmacy Benefits Verification tab, click
the Generate Call Script to launch a
Generate Call Scriptscreen flow. - To retrieve all the information related to a call script, the flow invokes the
Ls Commercial Context Data ProviderInvocable action, which uses data from theCallScriptForPharmacyBenefitscontext definition. The benefits data that the context service returns is used in subsequent steps. - The flow then invokes another invocable action, called
Serialize Apex Records To Stringified JSONto serialize records returned by apex class into Stringified JSON. - At the end, the flow invokes another invocable action,
careProgramCallScriptGenerationthat callsSummarize Call Scriptprompt template. The output from the prompt template is further passed to a Large Language Model (LLM), generates the required text. The final text returned by LLM is shown to users on the screen flow as a call script.
Note Info: By default, the Summarize Call Script prompt template uses OpenAI GPT 4 Turbo model. You can’t edit or remove the Summarize Call Script prompt template. To make changes to the template, open the Summarize Call Script prompt template from Setup, and create a copy by clicking Save as.
Key Steps to Generate Pharmacy Benefits Summary
Explore how the different components fit together to generate the benefits summary. Use Einstein Embedded AI to trigger a Salesforce flow that uses invocable action to map data into a suitable format. Use Context Service to hydrate the data related to pharmacy benefits summary, and pass the information into process automation tools. Create a prompt template to include specific instructions for generating a summary.
Review the key steps in the benefits summary generation process built by using the predefined context definitions, invocable actions, and a screen flow.
- After initiating the benefits verification request, reps can generate the pharmacy benefits summary with just a click of a button.
- On any care program enrollee record page, under Pharmacy Benefits Verification tab, click
the Generate Summary button to launch a
Generate Benefits Summaryscreen flow. - To retrieve all the information related to a benefits summary, the flow invokes the
Ls Commercial Context Data ProviderInvocable action which takes data fromPharmacyBenefitsSummarycontext definition. The benefits data that the context service returns is used in subsequent steps. - The flow then invokes another invocable action, called
Serialize Apex Records To Stringified JSON, to serialize records returned by apex class into Stringified JSON. - The flow then invokes another invocable action, called
careProgramBenefitsSummarythat calls theSummarize Patient Pharmacy Benefitsprompt template. The output from the prompt template is further passed to a Large Language Model (LLM), which generates the required text. The final text that the LLM returns appears on the screen flow as a patient pharmacy benefits summary.
Note Info: By default, the Summarize Patient Pharmacy Benefits prompt template uses OpenAI GPT 4 Turbo model. You can’t edit or remove the Summarize Patient Pharmacy Benefits prompt template. To make changes to the template, open the Summarize Patient Pharmacy Benefits prompt template from Setup, and create a copy by clicking Save as.

