AppsPricingBlogTry it
MongoDB logo
OpenAI (ChatGPT) logo

Connect MongoDB to OpenAI (ChatGPT)

Build an AI agent that works across MongoDB and OpenAI (ChatGPT), on a schedule or when you click Run.

9 source actions
24 target actions
Reverse direction supported

Why Connect MongoDB & OpenAI (ChatGPT)?

Read what you need from MongoDB

Your agent uses MongoDB's documented actions to pull the records it needs, each time it runs.

Run a OpenAI (ChatGPT) action

Then it uses one of 24 documented actions, such as Chat, Chat using Web Search, Chat using Functions.

Test it, then put it on a schedule

Run it once on your own data and check the result. Then set it to run daily, on weekdays or weekly.

Available Triggers & Actions

MongoDB logo

MongoDB

Triggers (4)

New Collection

Emit new an event when a new collection is added to a database

polling
New Database

Emit new an event when a new database is added

polling
New Document

Emit new an event when a new document is added to a collection

polling
New Field in Document

Emit new an event when a new field is added to a document

polling

Actions (9)

Create New Document

Create a new document in a collection of your choice. See the docs here

Delete a Document

Delete a single document by ID. See the docs here

Execute Aggregation

Execute an aggregation pipeline on a MongoDB collection. See the documentation

Find Document

Finds a document by a query filter. See the documentation

Find Document by Id

Retrieves a single document by ID. See the docs here

List Database Options

Retrieves available options for the Database field.

Search Documents

Search for specific documents or return all documents. See the docs here

Update a Document

Updates a single document by ID. See the docs here

Update Documents

Updates many documents by query filter. See the documentation

OpenAI (ChatGPT) logo

OpenAI (ChatGPT)

Triggers (4)

New Batch Completed

Emit new event when a new batch is completed in OpenAI. See the documentation

polling
New File Created

Emit new event when a new file is created in OpenAI. See the documentation

polling
New Fine Tuning Job Created

Emit new event when a new fine-tuning job is created in OpenAI. See the documentation

polling
New Run State Changed

Emit new event every time a run changes its status. See the documentation

polling

Actions (24)

Chat

The Chat API, using the gpt-3.5-turbo or gpt-4 model. See the documentation

Chat using Web Search

Chat using the web search tool. See the documentation

Chat using Functions

Chat with your models and allow them to invoke functions. Optionally, you can build and invoke workflows as functions. See the documentation

Chat using File Search

Chat with your files knowledge base (vector stores). See the documentation

Summarize Text

Summarizes text using the Chat API. See the documentation

Classify Items into Categories

Classify items into specific categories using the Chat API. See the documentation

Translate Text (Whisper)

Translate text from one language to another using the Chat API. See the documentation

Create Transcription

Transcribes audio into the input language. See the documentation

Create Image (Dall-E)

Creates an image given a prompt returning a URL to the image. See the documentation

Create Embeddings

Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms. See the documentation

Create Completion (Send Prompt)

OpenAI recommends using the **Chat** action for the latest gpt-3.5-turbo API, since it's faster and 10x cheaper. This action creates a completion for the provided prompt and parameters using the older /completions API. See the documentation

Analyze Image Content

Send a message or question about an image and receive a response. See the documentation

Cancel Run (Assistants)

Cancels a run that is in progress. See the documentation

Chat with Assistant

Sends a message and generates a response, storing the message history for a continuous conversation. See the documentation

Chat With Responses API

Send a chat via the Responses API, mixing built-in tools and MCP server tools. See the documentation.

Convert Text to Speech (TTS)

Generates audio from the input text. See the documentation

Create Assistant

Creates an assistant with a model and instructions. See the documentation

Create Batch

Creates and executes a batch from an uploaded file of requests. See the documentation

Create Fine Tuning Job

Creates a job that fine-tunes a specified model from a given dataset. See the documentation

Create Moderation

Classifies if text is potentially harmful. See the documentation

Create Thread (Assistants)

Creates a thread with optional messages and metadata, and optionally runs the thread using the specified assistant. See the documentation

Create Vector Store

Create a vector store. See the documentation

Create Vector Store File

Create a vector store file. See the documentation

Delete File

Deletes a specified file from OpenAI. See the documentation

Integration Features

9 documented MongoDB actions
24 documented OpenAI (ChatGPT) actions
Plain-English agent instructions
Daily, weekday or weekly schedule, or run on demand
Execution monitoring
A supported OpenAI (ChatGPT) to MongoDB direction

Capability Examples

MongoDB trigger → OpenAI (ChatGPT) action

Catalog example
MongoDBMongoDB

New Collection

OpenAI (ChatGPT)OpenAI (ChatGPT)

Chat

OpenAI (ChatGPT) trigger → MongoDB action

Reverse direction
OpenAI (ChatGPT)OpenAI (ChatGPT)

New Batch Completed

MongoDBMongoDB

Create New Document

How It Works

1

Connect Apps

Authenticate your MongoDB and OpenAI (ChatGPT) accounts

2

Describe the Job

Say what to read from MongoDB and what to do in OpenAI (ChatGPT)

3

Choose an Action

Select the documented OpenAI (ChatGPT) operation to run

Test and Review

Verify field mapping and provider responses before activation

Frequently Asked Questions

Integration Benefits

Scheduled or On-demand Runs

Runs daily, on weekdays or weekly at a set time, or when you click Run. It does not fire on live MongoDB events yet.

Automated Actions

Use 24 documented OpenAI (ChatGPT) actions each time the agent runs.

Provider Authentication

Review the authentication requirements published by each provider before activating the workflow.

Guided Configuration

Describe the job in plain English. The agent picks theMongoDB and OpenAI (ChatGPT) actions it needs.

Your Own Accounts

You connect your own MongoDB and OpenAI (ChatGPT) accounts. App connections need a paid plan.

Execution Review

Test the workflow and review provider responses before relying on it in production.

OpenAI (ChatGPT) logoMongoDB logo

Reverse Integration Available

Also connect OpenAI (ChatGPT) to MongoDB for bidirectional automation

View Integration
MongoDB logo

All MongoDB Integrations

Explore all available MongoDB connections

View All Integrations
OpenAI (ChatGPT) logo

All OpenAI (ChatGPT) Integrations

Explore all available OpenAI (ChatGPT) connections

View All Integrations

Ready to Connect MongoDB & OpenAI (ChatGPT)?

Build this agent in Mazaal AI and test it on your ownMongoDB and OpenAI (ChatGPT) data.

Start building

Rather not build it yourself? We set up one MongoDB to OpenAI (ChatGPT) agent on your accounts for A$490: a 30-minute call, a test on your real data, and 14 days of fixes. Plan billed separately. Email Enod