<aside>

Description

The Prompt Builder is a visual, no-code editor for building AI prompts connected directly to your Salesforce data. Define your inputs, configure your AI model, write and test your messages, then deploy — all from one workspace. Versioning, environment promotion, and cloning are built in.

</aside>

What you can do


Step 1: Getting Started

  1. Open the Prompt Builder from the SimpleTranslate platform.
  2. Choose your starting point:

Screenshot 2026-06-05 at 10.01.30.png

The editor opens in a three-panel layout:

Screenshot 2026-06-05 at 09.06.23.png


Step 2: Set up your AI model

In the center panel, configure which AI model will process your prompt.

  1. Select your AI Engine from the dropdown. Supported providers include OpenAI, Anthropic, Google Gemini, and AWS Bedrock.

  2. Choose a specific AI Model from the list — the models available depend on the selected engine.

    Screenshot 2026-06-05 at 10.00.19.png

  3. Select a Target Credential to connect the prompt to your Salesforce org. This is required for SOQL variables and for testing with live data.


Step 3: Understanding system parameters

When your prompt runs from Salesforce, these parameters are provided automatically — you do not need to define them:

Use these in your messages with double curly brace syntax: {{$data}}, {{$recordId}}, {{$objectApiName}}, {{$sfUserId}}.

For testing, fill in the parameter values manually in the left panel. When the prompt runs from Salesforce, these values are automatically replaced with real data from the record.

Screenshot 2026-06-05 at 09.06.38.png


Step 4: Create your variables

Variables let you bring in additional data beyond the system parameters. They appear in the left panel and can be dragged directly into your messages.

  1. In the left panel, click New Variable.
  2. Choose a variable type:
  3. Give your variable a name — for example, recent_cases or account_info. Variable names cannot match system parameter names (data, recordId, objectApiName, sfUserId).
  4. For SOQL variables:

Screenshot 2026-06-05 at 10.14.13.png


Step 5: Write your prompt messages

The center panel is where you write the instructions your AI follows. A prompt can have multiple messages, each with its own role.

  1. Click Add Message to add a new message row.
  2. Set the role using the dropdown on the right of each row:
  3. To insert a variable, drag it from the left panel directly into the message text. Variables are highlighted in the editor so you can see exactly what data will be injected at runtime.
  4. Use the Improve Text button (wand icon) on any message to have the AI refine the wording while keeping all variable references exactly as they are.

Step 6: Configure response format

  1. In the center panel, open the Response Format dropdown and choose:
  2. If you select JSON Schema, the schema editor opens. Define the structure of the JSON output you expect the AI to return.
  3. Click Generate from Salesforce to build a schema automatically — select a Salesforce object, choose which fields to include, and the schema is generated for you.
  4. Click Prettify to auto-format the schema. Validation errors are shown inline with the affected line highlighted in red.

Important: When the prompt is called from Salesforce with a JSON schema parameter, that schema overrides the one defined here. When called from a Flow, the schema defined in the Prompt Builder is used.


Step 7: Test your prompt

Before activating, test with real data to confirm the output is correct.

  1. In the left panel, fill in test values for your system parameters (recordId, objectApiName, data) to simulate a real Salesforce record.
  2. Click Test Prompt in the header.
  3. The system resolves all variable references, runs any SOQL queries live against your Salesforce org, sends the assembled messages to your selected AI model, and displays the result in the right panel.
  4. Review the response in the right panel. Token usage is shown at the top — total tokens consumed with a breakdown of input vs. output — so you can monitor cost.
  5. Adjust your messages, variables, or model settings and test again until the output is correct.

Screenshot 2026-06-05 at 09.07.35.png


Step 8: Save and activate

  1. Give your prompt a unique API Name — this is the identifier Salesforce components use to call it.
  2. Add a descriptive Label for display in the Prompt Builder list.
  3. Click Save.
  4. Click Activate to publish the prompt. Only Active prompts execute when called from Salesforce. Inactive or Draft prompts do not run.

Step 9: Save as New Version

The Prompt Builder stores up to 30 versions per prompt. Each version is a complete snapshot of your messages, variables, model configuration, and response schema — you can experiment freely without affecting what is currently live.