<aside>

Description

SimpleT AI Service provides AI powered text processing for Salesforce Flows and Apex. It supports content analysis, generation, data extraction, and context aware processing with synchronous and asynchronous execution modes.

</aside>

Setup

Use these guides before you start using the AI Service in Flows:

What you can do

AI processing capabilities

When to use AI services

AI processing parameters explained

Required fields

AI instructions / prompt

Execute asynchronously

Optional fields

User message / data

Record ID

flowAddAction.png

Response schema options

You can control the AI response format in two main ways.

Option 1: Object field API names (recommended)

Option 2: Custom response schema

{
  "schema": {
    "additionalProperties": false,
    "properties": {
      "contract_type": {
        "description": "Type of contract being analyzed",
        "readOnly": true,
        "type": "string"
      },
      "key_terms": {
        "description": "Important contract terms identified",
        "readOnly": true,
        "type": "string"
      },
      "risk_level": {
        "description": "Overall risk assessment",
        "readOnly": true,
        "type": "string"
      },
      "missing_clauses": {
        "description": "Important clauses that are missing",
        "readOnly": true,
        "type": "string"
      },
      "recommendations": {
        "description": "Recommended actions or improvements",
        "readOnly": true,
        "type": "string"
      }
    },
    "type": "object"
  },
  "strict": false,
  "name": "contract_analysis"
}

Use Case API Name

Understanding AI results

Synchronous processing results

When Execute Async = false, you receive results immediately:

Asynchronous processing results

When Execute Async = true, the action returns tracking information:

You then use the SimpleT AI Async Response Awaiter action to fetch the final result.

Working with asynchronous processing

Setting up async processing in a Flow

  1. Start AI processing – SimpleT AI Service action:
  2. Wait for processing – Wait element:
  3. Check for results – SimpleT AI Async Response Awaiter action:
  4. Handle results – Decision element:

getAsyncResponseInvocable.png