Skip to content
ActionMongoDB AtlasUpdated May 2026

How do I insert a MongoDB document?

Short answer: Drop the "MongoDB AtlasInsert One MongoDB Document" action anywhere in your workflow, map the inputs from upstream nodes, and publish.

Inputs

The fields this action accepts.

Every field can be mapped from an upstream trigger, AI step, table row, or hard-coded literal.

FieldTypeRequiredDescription
Database
database
stringRequired
Collection
collection
stringRequired
Document
document
objectRequiredJSON document to insert. Atlas auto-assigns `_id` if omitted.
Sample request
{
"database": "{{trigger.database}}",
"collection": "{{trigger.collection}}",
"document": "{{trigger.document}}"
}
Returns
{
"insertedId": "6a02b1f5c0e8b34d2a9c1234"
}

Use these fields in downstream nodes for routing, logging, or error handling.

Triggered by

Apps that pair well as the trigger for Insert One MongoDB Document.

Any of these apps can fire this action as part of a workflow.

FAQ

Questions about Insert One MongoDB Document.

What does the Insert One MongoDB Document action do in MongoDB Atlas?
Inserts a single document into a collection. For bulk inserts, the bulk endpoint via HTTP action is much faster per-document.
What inputs does Insert One MongoDB Document require?
Required: Database, Collection, Document. Every input accepts a static value or a variable from any upstream node in your workflow.
Can I use dynamic inputs from earlier workflow nodes?
Yes. Any field on this action can pull values from upstream nodes, whether that's a form response, a trigger payload, an AI output, or a lookup result.
What happens if MongoDB Atlas returns an error?
The workflow pauses on the failed node, the error message is captured in the run log, and you can retry the run with one click. Auto-retry policies are configurable per workflow with exponential backoff up to 5 attempts.
Does Insert One MongoDB Document support batch operations?
Yes. Run Insert One MongoDB Document inside a Loop node to process arrays. Tiny Command handles MongoDB Atlas's rate limits automatically so you don't have to throttle manually.
More actions

Other MongoDB Atlas actions.

Send insert one mongodb document from your workflows.

Triggered by anything in the catalog. Free tier available. No credit card.