Salesforce AI API: build support actions with a clear boundary

Kenneth Pangan
Written by

Kenneth Pangan

Stanley Nicholas
Reviewed by

Stanley Nicholas

Last edited September 8, 2026

Expert Verified
A person building a house of cards above the Salesforce logo

What the Models API actually provides

The Models API supports models enabled in Salesforce and sends calls through the Einstein Trust Layer. Salesforce documents it as Apex classes and REST endpoints, so a team can build directly in an org or call it from an existing implementation.

The REST API has four capabilities:

CapabilityEndpoint familyUseful support jobWhat it does not decide
Generate Chatchat-generationsDraft a reply from a role-labelled conversationWhether the reply may be sent
Generate TextgenerationsSummarize a case or draft an internal noteWhether the summary is complete or safe
Generate EmbeddingsembeddingsRepresent approved text for similarity searchWhich source is current or allowed
Submit FeedbackfeedbackRecord a review of generated textWhether the underlying case was resolved

A chat request takes a list of messages with user, system, or assistant roles. A text-generation request is better suited to a single prompt. Embeddings are numerical representations that can support semantic search or retrieval. These are useful technical capabilities, but a fluent response is still only an output: your application has to decide its data access, business rule, and next action.

Salesforce's REST access guide documents the setup. Create an External Client App, enable the required OAuth and JWT settings, configure the named caller, and protect the consumer secret. The guide lists API, refresh-token or offline-access, and Salesforce API Platform scopes for its setup path. Give the caller only the privileges the workflow needs. A long-lived credential with broad record access is not a shortcut around design work.

Build the case flow before the prompt

Start with a job a support lead can describe in one sentence. For example: “draft a follow-up for a Service Cloud case that is missing installation evidence.” The service may read a redacted case summary and approved troubleshooting guidance; it may draft questions for the customer; it may not promise a replacement, edit an entitlement, or send a reply without the policy and approval path you choose.

Write the boundary down before connecting a model:

StageExample decisionEvidence to review
ReadWhich case fields and articles are available?Field access, privacy rules, source freshness
DraftCan the system suggest the next question?Cited policy, missing evidence, tone
RequestCan it request a case task or update?Permission, approver, idempotency and failure path
VerifyDid the intended work happen?Salesforce record and the connected system that owns the outcome

That separation is especially important for a support action. A call can return generated text even when a source is stale, a required field is absent, or the API-backed update failed. Where your workflow sends a request to another system, use an explicit approval or other guard that fits your policy, and check the external result after it runs.

Test the output and the outcome

Use a small, controlled evaluation set before release. Include a normal case, a case with missing serial-number or purchase evidence, a request outside policy, conflicting knowledge, an unavailable tool, and an attempt to override the workflow instructions. Test authentication and error handling as deliberately as the prompt.

For every case, record four things: the input provided, the model output, any action request, and the state of the Salesforce record or downstream service after the action. The Models API also provides a feedback endpoint; use feedback as a quality signal, not as evidence that a customer-facing action completed. Salesforce lists usage and billing rates for Einstein Requests in its current documentation, so check the current terms and measure the workload you actually plan to run rather than copying an old credit estimate.

Use eesel CLI for the support teammate around Salesforce

eesel gives a support team a ready-to-work teammate. Its CLI is a second interface to that teammate, not a second workspace: what you inspect in terminal is the same teammate and workspace visible in the eesel dashboard. That is useful when a Salesforce implementation needs an auditable check of the approved support knowledge and instructions that surround a case.

For example, ask a coding agent to prepare a read-only report before you ship a Models API feature for installation cases. It can identify the selected eesel teammate, list its connected sources and manual files, and show the instruction that governs a case missing evidence. The report must not connect an account, change a permission, or enable automation. Node.js 18.17 or later is required for the CLI.

Bash
npx @eesel/cli login
npx @eesel/cli whoami
npx @eesel/cli agents
TARGET_EESEL_AGENT="paste-agent-id-or-name-here"
npx @eesel/cli status --agent "$TARGET_EESEL_AGENT"
npx @eesel/cli integrations --agent "$TARGET_EESEL_AGENT"
npx @eesel/cli files ls --agent "$TARGET_EESEL_AGENT"
npx @eesel/cli instructions --agent "$TARGET_EESEL_AGENT"

If an owner approves a supported eesel configuration change, preview it first with --dry-run and re-check the exact teammate. Keep actions contained before a test chat. Then use a new, redacted test conversation that resembles the API feature's intended case:

Bash
npx @eesel/cli new --name "Salesforce installation-evidence check" --agent "$TARGET_EESEL_AGENT"
npx @eesel/cli chat "A Service Cloud case says device setup failed after a firmware update but has no serial number. Cite the approved setup guide, list the evidence to request, and state when a human reviewer must decide." --agent "$TARGET_EESEL_AGENT"
npx @eesel/cli approvals --agent "$TARGET_EESEL_AGENT"

Review the cited guide, evidence request, and handoff. If the test creates a held action, inspect it before approval. Then verify the Salesforce case and any linked system result—not merely the chat transcript. This gives the person operating the Salesforce feature a concrete check of the eesel support workflow while keeping each product in its actual scope.

eesel Activity page with a work list and status filters
eesel Activity page with a work list and status filters

The eesel Activity page shows a work list and filters for approved, rejected, and pending items.

Use the API for the feature, and verify the work

Use Models API when you own the Salesforce application, its credentials, its data boundary, and its operation. Use eesel for Salesforce when you need an eesel support teammate and its workflow. In both places, start narrowly, test representative cases, approve consequential work deliberately, and confirm the result in the system that owns it.

Review installation-case guidance with eesel

Try eesel. Inspect the approved guide and test how your teammate requests missing installation evidence. Your support lead can review the same work in the dashboard.

Frequently asked questions

What is the Salesforce AI API?

This guide focuses on Models API: Apex classes and REST endpoints for Salesforce-enabled large language models.

What can Salesforce Models API do?

Its REST API supports Generate Chat, Generate Text, Generate Embeddings, and Submit Feedback. These capabilities do not decide customer actions.

How do I authenticate to Models REST API?

Salesforce documents an External Client App with OAuth and JWT. Use only required scopes, protect the consumer secret, and test access before production.

Does a generated answer update Salesforce?

No. Generated text is not proof that a case, entitlement, or order changed correctly. Inspect Salesforce and downstream results separately.

How should teams test Salesforce AI workflows?

Use routine cases, missing data, exceptions, tool failures, old knowledge, and override attempts. Review output, requested action, record, and outcome.

Does eesel CLI call Salesforce Models API?

No. eesel CLI operates an eesel teammate in its workspace and can inspect the same helpdesk teammate shown in its dashboard.

Can coding agents use eesel CLI?

Yes. Scope the teammate, dry-run a supported write, test a representative case, and verify any action where it happens.

Share this article

Kenneth Pangan

Article by

Kenneth Pangan

Writer and marketer for over ten years, Kenneth Pangan splits his time between history, politics, and art with plenty of interruptions from his dogs demanding attention.

Related Posts

All posts →
Illustrated banner showing AI tools connecting into the Salesforce platform
Guides

The 8 best AI tools for Salesforce in 2026

A hands-on guide to the best AI tools for Salesforce in 2026, from native Agentforce to the overlay agents that often deliver value faster and cheaper.

Riellvriany IndriawanRiellvriany IndriawanJun 15, 2026
7 best Salesforce Agentforce alternatives in 2026
Guides

7 best Salesforce Agentforce alternatives in 2026

Discover the top Salesforce Agentforce alternatives for 2026. Compare pricing, features, and use cases to find the right AI customer service solution for your team.

Stevia PutriStevia PutriMar 15, 2026
Banner image for 6 best AI tools for Salesforce Service Cloud in 2026
Guides

6 best AI tools for Salesforce Service Cloud in 2026

Looking for the best AI to enhance your Salesforce Service Cloud? We compare 6 top tools including Einstein, Agentforce, and eesel AI to help you choose.

Stevia PutriStevia PutriMar 13, 2026
A practical guide to the Salesforce AI strategy 2025
Guides

A practical guide to the Salesforce AI strategy 2025

Thinking about the Salesforce AI strategy for 2025? Salesforce is making big moves with Agentforce and Data Cloud, but is it the right fit for your team? We explore the ambitious vision, the hidden costs, and the practical challenges of implementation. Discover what the Salesforce AI strategy means for you and what alternatives exist for more agile teams.

Kenneth PanganKenneth PanganOct 7, 2025
Salesforce AI pricing explained: A clear guide for 2025
Guides

Salesforce AI pricing explained: A clear guide for 2025

Confused by the new Salesforce AI pricing? With recent price hikes and the shift to Agentforce and Flex Credits, understanding the true cost is harder than ever. This guide breaks down every pricing model, highlights hidden complexities, and shows you a simpler, more transparent alternative for your support team.

Stevia PutriStevia PutriOct 2, 2025
I tested 7 Otter AI alternatives in 2025 & found a clear winner
Guides

I tested 7 Otter AI alternatives in 2025 & found a clear winner

Otter.ai is a popular transcription tool, but its pricing and feature limitations have users searching for better options. After testing numerous platforms, I've compiled a list of the 7 best Otter AI alternatives in 2025 that offer better value, more features, and solve deeper business challenges.

Stevia PutriStevia PutriOct 8, 2025
Text and image inputs moving through risk flags to a human reviewer
Guides

OpenAI Moderation API: build a safer support review flow

Learn what OpenAI Moderation API signals mean, how to route flagged support content safely, and how eesel CLI helps test the support workflow around them.

Rama Adi NugrahaRama Adi NugrahaOct 12, 2025
Hero illustration for a 2026 roundup of the best AI agents for customer service
Guides

The 8 best AI customer service agents in 2026 (compared)

Compare eight customer service AI agents by workflow, oversight, and cost, with a practical eesel CLI pilot for your existing support stack.

Riellvriany IndriawanRiellvriany IndriawanJun 10, 2026
The best AI support agents for customer service in 2026
Guides

The 8 best AI support agents for customer service in 2026

A hands-on comparison of the best AI support agents for customer service in 2026, including what each tool does, who it fits, and what it costs.

Riellvriany IndriawanRiellvriany IndriawanJan 12, 2026

Ready to hire your AI teammate?

Set up in minutes. No credit card required.

Get started free