About Me

My photo
PLANO, Texas, United States

Friday, July 18, 2025

Healthcare Industry Sectors

All five healthcare industry sectors contribute to better patient. 

Who Are the Providers?

  • Providers include the people who take care of patients and the facilities where patients are cared for. People providers are who you think they are—doctors, nurses, physical therapists, and other clinical staff. These professionals provide preventive, curative, or rehabilitative healthcare services.
  • Provider facilities are things like hospitals, clinics, and skilled nursing facilities.

Who Are the Payers?

In healthcare, a payer is an entity responsible for covering the cost of medical services provided to patients by healthcare professionals (known as providers). They are the ones who pay bills for healthcare. Payers call their customers “members”. Payers do the following tasks.

  • Offer health plans/coverage
  • Collect premiums – They receive money from individuals, employers, or government sources to fund these plans.
  • Process claims- When a patient receives care, the provider sends a claim to the payer, and then reviews and processes.
  •  Engage members in wellness and care management programs.
Type of Payer-

  • Major National Plans
  • Regional and Local Plans
  • Provider-Led Plans
  • Government Plans
What are government payers?

Government/Public Payers- These are the programs funded by federal or state government to provide healthcare coverage to specific populations:

  • Medicare - Primarily for individuals 65 and older and certain younger people with disability or end-stage renal disease
  • Medicaid – Provides health coverage to low-income individuals and families and those with certain disabilities. It's jointly funded by the federal and state.
  • CHIP (Children’s Health Insurance Program) – Provides low-cost health coverage to children in families who earn too much to qualify for Medicaid but cannot afford private insurance.
  • TRICARE- Primarily for active-duty and retired uniformed officers and their families.
  • Veterans Health Administration (VA)- Provides coverage to eligible veterans.
Who are the Pharmaceuticals?

Pharmaceutical manufacturers belong to a sector of the healthcare industry known as life sciences. In general, life sciences focus on research and manufacturing of drugs and devices used in healthcare. Life sciences include biotechnology experts, medical device developers, and pharmaceutical manufacturers.

A drug, also called a medication, goes through a long lifecycle before it gets on the market. Here are the stages it travels

  1. Research and Development (R&D): Research is the scientific investigative undertaking that results in the discovery of a new drug. Development is when these findings are used to produce the drug, which is then tested in clinical trials.
  2. Clinical trials: Carefully conducted clinical trials are performed on volunteers to determine if a treatment works, is safe, and is more effective than an existing treatment.
  3. Regulatory review: In the US, findings from clinical trials are submitted for review by the Food and Drug Administration (FDA) to approve or deny the drug for sale.
  4. Commercial marketing and sales: A new drug launches on the market with marketing campaigns targeted to physicians and patients, while pharma sales reps educate physicians on the new drug and how to prescribe it.

Pharmaceutical Products- If we were to list all the drugs on the market today, we’d need a while, because there are thousands! Instead, let’s talk about the different drug classifications. 

  • Generic Vs Brand Name
    • Brand Name Drugs -These are original drugs developed, tested, and marketed by pharmaceutical companies under a specific trade name. Example: Tylenol is a Brand name that has the Active Ingredient (Generic Name): Acetaminophen. Protected by patents for several years, meaning no other company can sell the same drug under a different name.
    • Generic Drugs-These are copies of brand name drugs with the same active ingredients, strength, dosage form, and route of administration. Approval: Approved by regulatory bodies (like the FDA) only after the patent of the brand drug expires.
  • Small Molecule Vs Biologic
    • Small-molecule drugs are those manufactured in a lab by mixing different chemicals until the right compound is formed. Small-molecule drugs treat common conditions like infections, high blood pressure, diabetes, and high cholesterol. 
    • Biologics, on the other hand, are much more complex. They’re discovered and manufactured in living organisms, like plant and animal cells. They’re used for conditions like cancer, multiple sclerosis (MS), and hepatitis C. There’s more to know, but that’s it for now.

Pharmaceutical Customers-There are four main customers in the pharma sector.

  • Physicians prescribe the drugs to patients.
  • Payers pay for most of the prescription cost—the patient pays the other portion in the form of a co-pay.
  • Patients take the drugs or receive the treatments.
  • Distributors store and distribute the drugs.

Who is the MedTech?

Medical devices and technology (MedTech) fits into the life sciences sector of the healthcare industry. Life sciences focus on the research and manufacturing of drugs and devices used in healthcare.

MedTech produces the familiar and the futuristic. MedTech companies include those that manufacture devices, like bandages or robotics, and those that provide services, like software to translate x-rays into images.

MedTech Customers

Many of the healthcare sectors serve the same customers, so you may be familiar with this list. Medtech customers include: 

  • Payers
  • Providers
  • Patients
  • Distributors

Who is Public Sector Health?

The public sector health system refers to healthcare services provided, funded, or regulated by the government. It aims to ensure affordable, accessible, and equitable healthcare for all citizens, especially the poor and vulnerable.

 

Thursday, July 17, 2025

AgentForce

What is AgentForce?

Salesforce Agentforce is an AI-powered platform designed to create and deploy digital agents that can automate tasks, improve productivity, and enhance customer service. 

Building Blocks of Agents-

Agents-

  • These are the core AI assistants that perform tasks and interact with users.
  • They are more autonomous than other conversational AI solutions, able to identify opportunities for action and initiate tasks within defined parameters
  • An agent can perform business tasks on behalf of the users.
Topics –

  • Topics define the scope of an agent's capabilities and categorize the tasks it can handle.
  • They guide the agent in understanding user requests and applying the appropriate actions and instructions. For example, a topic could be "Account Management" or "Order Status Lookup".
Instructions

  • Instructions provide guidance to the agent on how to execute actions and interact with users.
  • They define the agent's decision-making process and ensure consistent and appropriate responses.

Actions

  • Actions are the specific tasks an agent can perform, such as looking up order status, updating account information, or generating a return label.
  • These can be standard Salesforce actions or custom actions built for specific needs.

Reasoning Engine

  • The reasoning engine orchestrates the interaction between topics, actions, and the Large Language Model (LLM)
  • It determines which topics and actions are relevant to a user's request and guides the agent's actions accordingly
  • Agentforce is using Atlas Reasoning Engine

Large Language Model (LLM)

  • The LLM enables the agent to understand natural language, communicate effectively with users, and generate relevant responses.
Security

  • Einstein Trust Layer

What are the Five Attributes of an Agent?

A screenshot of a computer

AI-generated content may be incorrect.

  • Role
    • It's similar to the roles that you've already defined today across your Customer 360. 
    • For example, if you're using Sales Cloud, you've defined roles for your SDRs and your account executives - their metrics and dashboards.
  • Data
    • All of this data is already in the Salesforce Platform.
    • Structured data like your custom fields as well as unstructured data like Slack conversations and knowledge articles. 
    • With our new Data Cloud Zero Copy Partner network, you can also pull in all of your external data lakes and warehouses to be activated by Agentforce. 
  • Actions
    • When you think about what workflows you want your Agent to be able to perform and automate.
    • These are the actions you've already built - the business processes into the Salesforce platform - every flow, every line of APEX code, every API integration, it’s all available for you to point and click and empower your Agentforce.
  • Channels
    • Thanks to the Salesforce platform, Agentforce has access to every digital channel natively within Salesforce whether that's Slack, Whatsapp, or your company website. 
  • Guardrails and Trust 
    • Provide an Agent with guardrails around what they can and cannot do. 

 What is Einstein Trust Layer?

AI agents are integrated with the Einstein Trust Layer, which is a secure AI architecture natively built into Salesforce. Designed for enterprise security standards, the Trust Layer lets you benefit from generative AI without compromising your customer data. It also lets you use trusted data to improve generative AI responses.

  • Data grounding: The Trust Layer ensures that generative prompts are grounded and enriched in trusted company data.
  • Zero-data retention: Your data is never retained by a third-party LLM provider.
  • Toxicity detection: Potentially harmful LLM responses are detected and flagged.
  • AI monitoring: AI interactions are captured in event logs, giving you visibility into the results of each user interaction.

A screenshot of a computer

AI-generated content may be incorrect.

 What are AI Guardrails?

AI guardrails are mechanisms that ensure your AI project operates legally and ethically. You need guardrails to prevent AI from causing harm with biased decisions, toxic language, and exposed data. Guardrails are necessary to protect your project from technical attacks.
There are three types of AI guardrails—security guardrails, technical guardrails, and ethical guardrails.

  • Security Guardrails-These guardrails ensure that the project complies with laws and regulations, and that private data and human rights are protected. Common tools here include secure data retrieval, data masking, and zero-data retention. Secure data retrieval means that your project only accesses data that the executing user is authorized to access. For example, if a person with no access to financial records triggers a response from the AI model, the model shouldn’t retrieve data related to financial records. Data masking means replacing sensitive data with placeholder data before exposing it to external models. This ensures that sensitive data isn’t at risk of being leaked. Model providers enforce zero-data retention policies, which means that data isn’t stored beyond the immediate needs of the task. So, after a response is generated, the data used is no longer available.
  • Technical Guardrails-These guardrails protect the project from technical attacks by hackers, such as prompt injection and jailbreaking, or other methods to force the model to expose sensitive information. Cyberattacks can cause your project to generate untrue or harmful responses.
  •  Ethical Guardrails-These guardrails keep your project aligned with human values. This includes screening for toxicity and bias. Toxicity is when an AI model generates hateful, abusive, and profane (HAP) or obscene content. Bias is when AI reflects harmful stereotypes, such as racial or gender stereotypes. As you can imagine, that’s a disaster! Since AI learns its responses, toxicity and bias could be a sign that your data is introducing unwanted language and ideas to your model. Toxicity detection identifies responses that might have toxic language, so you can review it manually and make adjustments to reduce toxicity.

What is Agentforce Data Library?

Agentforce Data Library is a Salesforce feature designed to enhance the accuracy and relevance of AI agents' responses by providing them with access to an organization's trusted data. It uses "grounding" to index various data sources, allowing AI agents to base their answers on accurate and specific information.
Here's a breakdown of what it is and how it works:

What it is:

A centralized repository for structured and unstructured data, including

  •  Knowledge articles
  • File uploads (e.g., PDFs, text, HTML)
  • Web sources
  • Salesforce fields and records

How it works:

·       Data Ingestion: You upload or connect your data sources to the Data Library.

  •  Indexing: The Data Library indexes this content, making it searchable for AI agents. This process also automates several configuration steps in Salesforce Data Cloud and Prompt Builder, such as creating data streams, mapping data objects, and setting up search indexes and retrievers.
  • Grounding: When an AI agent receives a query, it uses the indexed data to "ground" its response. This means it retrieves the most relevant information from your specific data library to ensure its answers are accurate, contextual, and aligned with your organization's policies and information.
  • Generative AI Integration: The retrieved information is then combined with Generative AI to formulate a clear, helpful, and natural-language response.
Agentforce for Sales
  • Agentforce SRD
    • In sales, an SDR (Sales Development Representative) is an entry-level role focused on generating and qualifying leads for a sales team. They are the first point of contact for potential customers, engaging with them through various channels like cold calling, emailing, and social media to identify if they are a good fit for the company's products or services. SDRs do not close deals; instead, they pass qualified leads to sales representatives
    • Agentforce SDR, also known as AI SDR agents, helps your team nurture leads at scale 24/7. SDR agents are proactive, autonomous agents that send personalized outreach, answer your customers’ questions accurately, and even book meetings on your behalf. This is transformative for sales teams and allows them to focus on building customer relationships and pipeline growth. Here, you learn more about these agents.
  • Agentforce Sales Coach
    • Sales teams continually face new challenges. A sales rep leaves, and the team scrambles to cover until a new hire is up to speed. An inexperienced sales rep needs support for a negotiation with a new customer they’re struggling with. Managers just don’t have the time to review every deal and give every seller the 1:1 coaching they need.Good news: Salesforce now offers a solution that helps managers and sales reps alike. Sales coaching in Agentforce is like having a personal trainer in Salesforce. 
    • Agentforce Sales Coach provides deal-specific, personalized feedback to sellers on their messaging and customer communication. It provides
      • Autonomous, on-demand coaching: Reps can receive guidance anytime, without needing a live coach
      • Pitch practice before meetings: Sellers can rehearse their pitch and get tailored, actionable feedback based on the deal and its current stage
      • AI-driven role-play scenarios: Reps can practice tough conversations with a simulated “customer” or “buyer.
      • Personalized feedback on role-plays: Reps can improve their approach using insights specific to their deal.

 

Wednesday, July 16, 2025

Prompt Builder

 What is Prompt Builder?

Before we understand about Prompt Builder. It would be good to know what LLM is and how can we utilize in our business.

A Large Language Model (LLM) is an advanced AI system trained on huge amounts of text to understand and generate human-like language. It can answer questions, write content, translate, summarize, and more—just like ChatGPT. LLM can make a big impact on business. For example, they can help you to generate the personalized email to customers or provide case summary in a glance and many more. 

However, LLMs cannot generate great content themselves. They need some guidance or instruction based on which LLMs can create the output. These instructions are called a Prompt. In short, A Prompt is a specific instruction or question given to an LLMs to generate its output. These reusable, predefined instructions (“Prompt”) are collectively referred to as the Prompt Template. The Prompt Template has merge fields from salesforce record.

A Prompt Builder is a tool that helps users create, manage and deploy prompts for LLs.

Key Features of Prompt Builder-

  1. Drag and drop interface – Build prompts without writing code using a simple interface.
  2. Template Creation- Prompt Builder allows the user to create a reusable prompt template.
  3. Integration with business data- A significant advantage of Salesforce's Prompt Builder is its ability to integrate directly with existing business data (e.g., customer information, product details). This "grounds" the AI's responses, making them highly relevant and personalized rather than generic.
  4. Security and trust- When you generate a response from a prompt built in Prompt Builder, the prompt is sent to the Einstein Trust Layer, which masks any sensitive data before sending it to the LLM. When prompts are sent to external models through the shared trust boundary, your data is encrypted to ensure its security in transit. Additionally, any sensitive information within the prompts is masked. Finally, based on the “zero retention” standard, your data is never stored outside of Salesforce. For more information, check out the Einstein Trust Layer badge. 

  5. Testing and refinement-Prompt Builders typically provide a workspace to test prompt templates in real-time. Users can preview how the AI will respond to specific data, allowing them to iterate and refine the prompt until it consistently delivers the desired results.

 

Different types of Prompt Templates-

  • Sales Email prompt templates help your team draft truly personalized emails for your customers, products, and events based on record data.
  • Field Generation prompt templates bring generative AI-assisted workflows to custom fields within a Salesforce record.
  • Record Summary prompt templates create a rich-text summary for a Salesforce record based on the record’s data.
  • Flex prompt templates generate content for business purposes not covered by other prompt template types, allowing you to define your own resources. Flex prompt templates in Prompt Builder offer a versatile and efficient way to automate the creation of text for PDFs, social media posts, newsletters, emails, record fields, and more with Einstein generative AI and the LLM (large language model). Unlike the Sales Email or Field Generation prompt templates in Prompt Builder, Flex templates don’t have predefined entry points. What does this mean? You can select any object in your organization to use in the template and apply the completed prompt wherever you see fit. Whether you're using Apex, Flow, REST API, or Agentforce, Flex templates are designed to fit your needs.

What are the Permission Sets involved?

Prompt Template User

Role: End user or consumer of prompts
What they can do:
View published prompt templates
Use templates in supported Salesforce interfaces (e.g. console, agents, flows)
Input values and run prompts in supported channels (like Knowledge, Case replies, or custom use cases)

2.      Prompt Template Manager

Role: Builder, administrator, or prompt engineer
What they can do (in addition to user permissions):
Create new prompt templates
Edit and delete templates
Test templates in the Prompt Builder UI
Manage prompt versions (draft, published, etc.)
Set input variables, retrievers, responses, resolution logic, etc.

 

 

 

 

 

 

Tuesday, November 26, 2024

DevOps Center​

  • DevOps Center lets you choose whether to manage your releases from its point-and-click interface, or directly from the source control system, or a combination of both. Under the hood, we manage the source control branches so developers and builders can focus on development tasks.​
  • Because all changes are captured in a source control system, you have a single source of truth for configuration and code, which improves collaboration across all functions: admins, developers, release managers, QA, and other business stakeholders.​

What do you need to start with DevOps Center?

  • Access to DevOps Center in Salesforce​
  • Access to Dev Org, Dev Integrated Org, QA Org, and Stage Org​
  • Access to GitHub, (BB is in Beta as of 11/26/2024)

Work Item-

In Salesforce DevOps Center, a work item is a logical unit of work that represents a collection of metadata changes for a project​

Because all changes are captured in a source control system, you have a single source of truth for configuration and code, which improves collaboration across all functions: admins, developers, release managers, QA, and other business stakeholders.​

A work item encapsulates information about an objective or task while it’s being worked on and is assigned to one individual. The work item is a historical record if questions arise about those changes. ​

Create Review ​

  • Once work item is created and components get added, pls submit for review by clicking the “Create Review” button on Work item.​
  • When a work item is reviewed and approved, you can change the status to Ready to Promote.​

Recommendation on Work Item​

  • If a plan changes, or if a change conflicts with another change, you can change the status of a work item to Never. This will make the work item inactive and return the committed files to the list of available changes. ​
  • Limit the number of work items​
  • Combine work items​

Things to Remember​

  • SF Devops center is in its initial stages, It's not as rich as other tools like Flosum or Copado or many more.​
  • We will not have the cool feature that flosum had which is the Overwrite protection against the org.​
  • BitBucket is support is still in Beta version

Thursday, February 29, 2024

Working with Polymorphic Relationships in SOQL Queries

Polymorphic Relationships

Polymorphic fields are defined as fields that can reference more than one Object. A polymorphic lookup field is a lookup field that allows you to select a record from more than one table therefore ‘morphing’ into many (poly!) tables. For example:
  • A Lead or Case Owner can be either a User or a Queue record since the Lead Owner and Case Owner are both Lookup (User, Queue) fields.
  • Who relationship field of a Task can be a Contact or a Lead.
  • What: This field represents nonhuman objects that are associated with the record.

How to check if a field is Polymorphic?

To determine what kind a field is, call describeSObjects() on the object and examine the properties of the field. Also, you can check the below properties in Workbench.
  • If relationshipName is not null, the field is a relationship field.
  • If, in addition, namePointing is true, polymorphicForeignKey is true, and referenceTo has more than one referenced object type, then the field is polymorphic.

How to use Polymorphic fields in SOQL query?

You can use polymorphic fields in several ways.
  • You can use the polymorphic field for the relationship.
            [SELECT Id, What.Name FROM Event]
  • You can use the Type qualifier on a polymorphic field to get the associate object name. For example, if you wanted to pull events created only under Account and Opportunity, you can use as below:
            [SELECT Id FROM Event WHERE What.Type IN ('Account', 'Opportunity')]
  • You can use a TYPEOF clause in a query. A TYPEOF expression specifies a set of fields to select that depends on the runtime type of the polymorphic reference. For example, you need to find the Event information along with reference object information. If the event is linked with Account pull Phone and  NumberOfEmployees, if the event is linked to Opportunity then get THEN Amount, CloseDate otherwise get email and name. 
            [SELECT  
                TYPEOF What
                    WHEN Account THEN Phone, NumberOfEmployees
                    WHEN Opportunity THEN Amount, CloseDate
                    ELSE Name, Emai
                END
            FROM Event]

Wednesday, January 4, 2023

Merging two or more PDF in Salesforce

Sometimes we want to Combine Multiple PDF Files into a single one. Unforfutley, there is no inbuilt method or way in apex to combine these pdf, however, there are multiple 3rd party applications that can be utilized to combine pdfs into a single. I am going to explain two or more PDF merges using Conga Composer’s API.
Before you go with this approach, wanted to highlight that Conga composer is a paid tool and you may use it to pay for their API.

Once you have Conga Composer Install, you can use the Conga API using the below link:

Step1: Create the Conga query, which will bring the PDF from Salesforce, you can use below query, let's say you have an account object under which multiple pdfs are there and you wanted to combine them into one, write Conga query record with the below SOQL:

SELECT ContentDocument.id,ContentDocument.Title FROM ContentDocumentLink

WHERE LinkedEntityId = '{pv0}'


Step2: Make a REST API Using the below code:


public static String doCongaMergeAPICall (Id masterRecordId,Id queryId) {
    String ssId=userinfo.getSessionId();
    String servUrl = Url.getSalesforceBaseUrl().toExternalForm() + '
/services/Soap/u/37.0/' + UserInfo.getOrganizationId();
    String url = 'https://composer.congamerge.com/composer8/index.html' +
                 '?sessionId=' + ssId +
                 '&serverUrl=' + EncodingUtil.urlEncode(servUrl, 'UTF-8');
    String defaultParameters = '&SC0=1'
                 + '&SC1=SalesforceFile'
                 + '&defaultPDF=1'
                 + '&APIMODE=1'
                 + '&QVar0Format=10010'
           + '&APDF=1';
     url = url +  
         +   '&Id='+masterRecordId
         +   '&QVar0ID='+queryId+'%3Fpv0%3D'+masterRecordId
         +   '&TemplateId={QVar0}'
         +   '&OFN='+outputFileName
         +   defaultParameters;                
     Http http = new Http();
     HttpRequest req = new HttpRequest();
        HttpResponse res = new HttpResponse();
     try {
         req.setEndpoint(url);
         req.setMethod(GET);
     res = http.send(req);
     } catch(Exception ex) {
          }
     return res.getBody();
   }
}

Saturday, January 1, 2022

Digital Certification


  • Secure Sockets Layer (SSL) certificates, sometimes called digital certificates, are used to establish an encrypted connection between a browser or user’s computer and a server or website. The SSL connection protects sensitive data, such as credit card information, exchanged during each visit, which is called a session, from being intercepted from non-authorized parties.

  • In short: SSL keeps internet connections secure and prevents criminals from reading or modifying information transferred between two systems. When you see a padlock icon next to the URL in the address bar, that means SSL protects the website you are visiting.

  • Salesforce certificates and key pairs are used for signatures that verify a request is coming from your organization. They are used for authenticated SSL communications with an external web site, or when using your organization as an Identity Provider. You only need to generate a Salesforce certificate and key pair if you're working with an external website that wants verification that a request is coming from a Salesforce organization

Certification involved in Salesforce

  1. Self-Signed Certificate-

    1. Generate a certificate signed by Salesforce to show that communications purporting to come from your organization are really coming from there.

    2. By default, All the self-signed certificates are only valid for 90 days, then you will need to renew them every 90 days.

  2. A certificate authority-signed (CA-signed)-

    1. A certificate authority-signed (CA-signed) certificate can be a more authoritative way to prove that your org’s data communications are genuine. You can generate this type of certificate and upload it to Salesforce.

  3. API Client Certificate -

    1. The API client certificate is used by workflow outbound messages, the AJAX proxy, and delegated authentication HTTPS callouts. For security reasons, the API client certificate should be known only to your org.

1 way SSL Vs 2-way SSL-

As SSL is used to ensure communication between two parties is secure and encrypted. There are two mode of SSL communications:

  1. 1 way SSL-

    1. In one way SSL, only the client validates the server to ensure that it receives data from the intended server. For implementing one-way SSL, the server shares its public certificate with the clients.

    2. Only client authenticates the server and server doesn't care who is the client 

    3. For example- Whenever we visit any SSL enabled website like https://www.google.com from your browser. Here, we are the client and Google is the server. In this case, google doesn't matter who the client is, however, the client authenticates that the data is coming from google.  


  2. Two way SSL-

    1. Two way SSL, also known as mutual SSL certificates, are SSL certificates where the server and the client authenticates each other for a more robust security.

    2. In case of two-way SSL, both client and server authenticate each other to ensure that both parties involved in the communication are trusted. Both parties share their public certificates to each other and then verification/validation is performed based on that.

    3. Whenever we need server to server (B2B) communication, you can use Two way SSL. 

    4. When using mutual authentication/2-way SSL, Salesforce.com can present a self-signed certificate to the target host (that must present a CA signed certificate to Salesforce), provided that this certificate has been configured in the target host (installed in the target server's keystore).

    5. When sending outbound messages, delegated authentication requests or Apex callouts to secure/SSL endpoints, a Salesforce.com organization (acting as the client) will only trust the target host (that will act as the server) if this presents a certificate signed by a root Certification Authority (CA) included in the list shown in the below link. In other words, in this scenario self-signed certificates are not allowed to be used by the target host.