# 2.1 Database Development

{% tabs %}
{% tab title="✓  INSTRUCTIONS & DELIVERABLE" %}
While the chatbot script (Rivescript) is your main method of controlling the flow of your chatbot dialogue, you will likely want to use a basic database to store tabular data that your chatbot could incorporate in it's service. For example, you may have a large dictionary of terms that a visitor may want to search through your chatbot, or maybe you develop a large set of study questions to quiz a visitor of your chatbot. There are a lot of possibilities.

You will find that providing a chatbot that is backed by a rich data source for people will take careful thought and multiple iterations. So getting a good start on your database will be very beneficial. Follow the [**instructions for managing a database**](https://docs.idew.org/code-chatbot/code-mods/connecting-a-database-using-google-sheets) for your team and make an intentional plan to develop your database of valuable facts for use in your chatbot.

You will have to think carefully and discuss with your team about what kind of data will be most valuable, along with how you can best format the data to make it useful in the chatbot.

**❏ Deliverable**\
Your properly formatted database that will support use in the chatbot. Items may continue to be added.
{% endtab %}

{% tab title="★  RUBRIC" %}

| ✓- Below Standard                                                                                                 | ✓ At Standard                                                                      | ✓+ Above Standard                                                                                                                                   |
| ----------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| **The database** is mostly complete but lacks quality of work, revealing a hurried approach or little reflection. | The database is complete and presents a consistent method and attention to detail. | The database provides exceptionally formed content that reveal a thoughtful approach to generating the data and evaluating the quality of the data. |
| {% endtab %}                                                                                                      |                                                                                    |                                                                                                                                                     |
| {% endtabs %}                                                                                                     |                                                                                    |                                                                                                                                                     |


---

# 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.idew.org/project-chatbot/project-instructions/2-design-and-build-solution/2.1-database-development.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.
