Prompts and Prompt Builders in Salesforce Agentforce

Whenever you ask an agent a query or question, the prompts are how you communicate with the large language model(LLM). AgentForce responds to queries and requests in a language inspired by human speech and provides relevant responses.

Designing an effective prompt is key to unlocking the benefits of generative AI. In this tutorial, we will learn about prompts and prompt builders in Salesforce Agentforce. I will also explain how to use prompt templates created through the prompt builder.

Prompts in Salesforce Agentforce

In simple words, the prompts are the instructions that we give in the input to the Agent to retrieve information, perform a task, or take any other action. AgentForce responds to queries and requests in a language inspired by human speech and provides relevant responses.

Generative AI can give correct output or meaningful answers if it is given effective prompts. Prompts are the way you communicate with the large language model (LLM), and designing an effective prompt is key to unlocking the benefits of generative AI. This means that if your prompts are specific, then you will get much better results from the LM model.

Let’s understand this using an example of how effective prompts give better results via an LM model. In the OpenAI ChatGPT, I’m asking it to ‘Generate an image of a crowded city,’ and then we will see the difference in the output that it generates based on the prompts that we have given.

Prompts in Salesforce Agentforce

Now, let me give one more prompt with important information grounded in my needs. So here again I’m asking crowded citi but this time I want with specific details.

Specific Prompt in Agentforce

So, with this prompt, we can say that AI can give much more meaningful responses. The difference here is that the first prompt did not have grounded data, but the second prompt does, which is an Indian city.

So, when we added extra information or specific information, the response totally changed. That’s why it is vital to have an effective prompt.

Writing an efficient prompt has become very crucial when working with LLM or Gen AI technology. Now, let’s understand how it will help in Salesforce CRM.

In CRM, the sales rep or the marketing team needs to generate content to send to prospective leads or users. Gen AI is very good at generating content by analysing large amounts of data and summarising it in an exact, clear manner.

Prompt Builder in Salesforce Agentforce