SalesForce +

OpenAI

Integration

Connect OpenAI
to Salesforce

Analyze documents, extract fields, and draft replies from Salesforce. When processing takes longer than a callout can wait, configure an OpenAI background request and completion webhook to bring the result back.

Free tier available

2.500+ installs

Setup in <30 min

OpenAI logo on black background

OpenAI

Salesforce

OpenAI logo on black background

OpenAI

Salesforce

Integrations

Popular ways to use the Salesforce + OpenAI integration.

SalesForce

OpenAI

OpenAI

SalesForce

SalesForce

OpenAI

OpenAI

SalesForce

No actions found
No actions found
No actions found

Overview

How the Salesforce + OpenAI integration works

Send selected Salesforce fields to the OpenAI API and map the generated output back to your records. Use a reusable template from Flow or a dedicated scheduled job. For background responses, store the response ID and retrieve the result after a completion event.

Salesforce

Declarative Webhooks

OpenAI logo on black background

OpenAI

Send prompts and Salesforce record data.

Configure mappings, schedules, and call logs.

Map responses or handle completion events.

Salesforce

OpenAI logo on black background

OpenAI

Declarative Webhooks

Send prompts and Salesforce record data.

Configure mappings, schedules, and call logs.

Map responses or handle completion events.

How It Works

Three steps to go live.

01

Connect your OpenAI project

Install Declarative Webhooks in a Salesforce sandbox. Create an API key in your OpenAI project and configure a Salesforce Named Credential for the connection.

01

Connect your OpenAI project

Install Declarative Webhooks in a Salesforce sandbox. Create an API key in your OpenAI project and configure a Salesforce Named Credential for the connection.

02

Map a useful result

Test a request that extracts a renewal date and next step from account notes. Map the output to Salesforce fields for the account owner to review.

02

Map a useful result

Test a request that extracts a renewal date and next step from account notes. Map the output to Salesforce fields for the account owner to review.

03

Choose how the workflow runs

Invoke the template from Flow or schedule it for selected records. For background requests, configure and test the inbound completion workflow before activating it.

03

Choose how the workflow runs

Invoke the template from Flow or schedule it for selected records. For background requests, configure and test the inbound completion workflow before activating it.

The Platform

Why build it with Declarative Webhooks.

1

Summarize records for handoffs

Give the next account owner a concise summary of approved account notes, outstanding questions, and next steps directly on the Salesforce record.

2

Extract fields from notes

Ask for structured output such as a renewal date or requested product. Map each value to its own field and validate it before using it in automation.

3

Draft replies for review

Generate a follow-up using selected Opportunity details. Save the draft in Salesforce so the rep can edit and approve it before sending.

4

Process selected records on a schedule

Run a dedicated job for records awaiting analysis. Choose the record filter, callout template, and schedule instead of starting every request on a record change.

5

Handle analysis that outlasts a callout

Large-document analysis can exceed a callout’s timeout. Submit a background response, store its ID, and use a completion webhook to trigger retrieval and update Salesforce.

6

Control the full AI workflow

A simple prompt action may leave the difficult last step unfinished. Configure supported OpenAI requests, background completion handling, and result mappings around your Salesforce process.

Compatibility

Compatibility & Requirements

Salesforce

Salesforce

Works across major Salesforce clouds

Works across major Salesforce clouds

Enterprise, Unlimited, and Performance editions

Enterprise, Unlimited, and Performance editions

Declarative Webhooks package required

API access for authenticated inbound webhooks

API access for authenticated inbound webhooks

Optional Agentforce and Salesforce MCP Server support

Optional Agentforce and Salesforce MCP Server support

Salesforce Essentials

Salesforce Essentials

OpenAI logo on black background

OpenAI

Responses API

Text generation

Structured outputs on supported models

Background responses on supported models

API key authentication

Separate API billing and usage limits

ChatGPT interface automation

OpenAI logo on black background

OpenAI

Responses API

Text generation

Structured outputs on supported models

Background responses on supported models

API key authentication

Separate API billing and usage limits

ChatGPT interface automation

FAQ

Common questions about the Salesforce + OpenAI integration.

Why use Declarative Webhooks instead of Flow HTTP Callout?

Can OpenAI notify Salesforce when a background response finishes?

Can I process Salesforce records on a schedule?

Do I need a ChatGPT subscription to connect Salesforce to OpenAI?

Can a person review AI output before it changes a process?

What Salesforce data is sent to OpenAI?

Build your OpenAI workflow in Salesforce

Install Declarative Webhooks on AppExchange.

Omnitoria helps Salesforce customers, admins and developers build and scale faster.

© 2026 Omnitoria. All rights reserved.

Build your OpenAI workflow in Salesforce

Install Declarative Webhooks on AppExchange.

Omnitoria helps Salesforce customers, admins and developers build and scale faster.

© 2026 Omnitoria. All rights reserved.

Build your OpenAI workflow in Salesforce

Install Declarative Webhooks on AppExchange.

Omnitoria helps Salesforce customers, admins and developers build and scale faster.

© 2026 Omnitoria. All rights reserved.

Create a free website with Framer, the website builder loved by startups, designers and agencies.