# Mongo Database

If you want to use MongoDB and don't want to give money away or you don't need anything special, then you can follow this guide to get database for free:

## Create Project

1. Register on [MongoDB Atlas](https://www.mongodb.com/cloud/atlas/register) & verify your mail
2. Now you'll be [prompted to select Plan](<https://i.imgur.com/MHz3UYA.png >), select **M0**
3. Scroll down and [optionally change Name & Location](https://i.imgur.com/p4nfDYJ.png) and click 'Create'
4. Now you'll be [asked to create User for Database](https://i.imgur.com/dYjfWUH.png), choose Username & Password and click 'Create User'
5. Now you need to add list of IP Addresses which will be able to connect to your Database. Enter IP of your machine/server or **0.0.0.0** to allow access from anywhere (not recommended) and click 'Add Entry'
6. Now scroll down and click 'Finish and Close'

## Connect

Now in order to connect bot to MongoDB, you'll need Connection URI which can be obtained in a few simples steps:

1. Click [Connect Button](https://i.imgur.com/0dHIuO0.png)
2. Copy the URI by clicking button [like on this image](https://i.imgur.com/x1S7d5p.png)
3. Open `config.yml` and find `database.mongo.uri` field and paste the URI you copied into it.\
   1\. You can optionally [add database name](https://i.imgur.com/S61WncL.png) of your choice after `mongodb.net/`. By default it will be 'test'.
4. Save and restart Bot


---

# 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://nidzo-docs.gitbook.io/ticketsbot/installation-and-setup/database/mongo-database.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.
