> For the complete documentation index, see [llms.txt](https://docs.tonic.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tonic.ai/fabricate/databases-and-data/adding-data-to-a-database/data-generate-data-connection.md).

# Prompting the Data Agent to generate data

{% hint style="info" %}
Database connections require an Enterprise license.

Your external database must allow connections from the [Fabricate IP addresses](/fabricate/about-fabricate/fabricate-ip-addresses.md).
{% endhint %}

To add data to either a local database or a database connection, prompt the Data Agent.

You can provide details to further shape the data, and optionally tell the Data Agent to use its own judgment for some elements of the data.\
\
For example: `Create 70 customers. Each customer has 1-3 orders. Each order has 1-5 products. You can choose the distribution of the customers throughout the United States.`&#x20;

The Data Agent can ask clarifying questions to help determine the data volume and distribution. The Data Agent pulls from a wide range of built-in skills to generate the data. Based on the types and formats of data that you ask for, the Data Agent can automatically pull in npm packages to help with the data generation. If you have a specific npm package that you want to use, you can also prompt the Data Agent to retrieve and use it.

For a database connection, if you have another populated database connection to work from as a resource, you can base the generated data on that database connection.

For example:

`Populate the transactions database using the same profile as the prod database, but scale up the data volume to 1,000 customers. Use the same products as the prod database.`

Unless you specify otherwise, for a database connection, Fabricate generates all new data. You can also add records to a database:

`Add another 500 customers to the transactions database while maintaining the existing profile.`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.tonic.ai/fabricate/databases-and-data/adding-data-to-a-database/data-generate-data-connection.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
