Prompt Builder and Prompt Template in Salesforce Agentforce

Whenever you ask an agent a 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, providing relevant responses.

When we provide a clear and effective prompt, the generative AI gives better results. In this tutorial, we will learn about the prompt builder and prompt template in Salesforce Agentforce. I will also explain how to use prompt templates created through the prompt builder.

Prompt Builder and Prompt Template in Salesforce Agentforce

Below, I will explain the prompt builder and prompt template in Salesforce Agentforce.

Prompts in Salesforce Agentforce

In simple words, prompts are the instructions we give the Agent in the input to retrieve information, perform a task, or take other actions.

AgentForce responds to queries and requests in a language inspired by human speech, providing relevant responses.

Generative AI can give correct output or meaningful answers if it is given effective prompts. Prompts are how you communicate with a large language model (LLM), and designing effective prompts 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 with an example of how effective prompts improve results with an LM model. In OpenAI ChatGPT, I’m asking it to ‘Generate an image of a crowded city,’ and then we will see the difference in the output it generates based on the prompts 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 cities, but this time I want with specific details.

Salesforce Specific Prompt in Agentforce

With this prompt, we can say that AI can provide much more meaningful responses. The difference here is that the first