[Agent] Define Prompt Template

The Agent define prompt template operation is very useful when you want to use specific prompt templates. The prompt template language is a simple way to define and compose AI functions using plain text. You can use it to create natural language prompts, generate responses, extract information, invoke other prompts, or perform any other task that can be expressed with text.

Agent Prompt Template

Input Fields

Module Configuration

This refers to the Einstein AI configuration set up in the getting started section.

General Operation Fields

  • Template: This field contains the prompt template for the operation.
  • Instructions: This field contains the instructions for the LLM and goals towards the result.
  • Dataset: The dataset that needs to be evaluated by the LLM using the template and instructions for this operation.

Additional Properties

  • Model Name: The model name to be used (default is OpenAI GPT 3.5 Turbo).
  • Probability: The model's probability to stay accurate (default is 0.8).
  • Locale: Localization information, which can include the default locale, input locale(s), and expected output locale(s) (default is en_US).

XML Configuration

Below is the XML configuration for this operation:

<mac-einstein:agent-define-prompt-template 
  doc:name="Agent define prompt template" 
  doc:id="e82292dc-8a92-4ed8-a863-fafceaac711c" 
  config-ref="Einstein_AI" 
  template="#[payload.template]" 
  instructions="#[payload.instructions]" 
  dataset="#[payload.dataset]"
/>

Output Field

This operation responds with a json payload.

Example Use Cases

Prompt templates can be used in various scenarios, such as:

  • Customer Service Agents: For customer service teams, prompt templates can be very useful to provide case summaries, case classifications, summarizing large datasets, and more.
  • Sales Operation Agents: For sales teams, prompt templates help with writing sales emails, summarizing cases for specific accounts, assessing the probability to close deals, and more.
  • Marketing Agents: For marketing teams, prompt templates can help generate product descriptions, create newsletters, plan social media campaigns, and more.