# MongoDB

**How to connect MongoDB to Churned.io**\
Log in to the Churned platform and go to the “Integrations” section. Click on “New Integration” and select MongoDB from the list.

You will be prompted to enter the following credentials:

**Required Credentials**

* **connectionURI** – The full MongoDB connection string URI.
* **database** – The name of the MongoDB database you want to connect.

**Here’s how you can obtain these credentials:**

1. Log in to your MongoDB Atlas or self-hosted MongoDB instance.
2. For Atlas, go to **Clusters > Connect > Connect Your Application**.
3. Copy the full **MongoDB URI** (e.g., `mongodb+srv://username:password@cluster.mongodb.net`) and replace placeholder values if needed.
4. Identify the name of the database that contains the customer data you want to use.

**Input the Credentials**\
Paste the full connection URI and the database name into the Churned integration form.

Click **Save** to test the connection. Once it’s working, notify the Churned team to begin syncing data.

**Helpful Links**

* [MongoDB Connection Guide](https://www.mongodb.com/docs/manual/reference/connection-string/)
* [MongoDB Atlas Documentation](https://www.mongodb.com/docs/atlas/)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.churned.io/churned-docs/integrations/mongodb.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
