# AI Assistant for Capsules Docs Generation

This feature under our AI Assistant’s set of tools creates documentation for capsules. It also enables developers to save time, improves consistency, boosts users’ productivity and efficiency by addressing the challenges of manual documentation.

{% hint style="info" %}
Capsules are a set of configured connectors that can be reused in pipelines in the Digibee Integration Platform. For more information, [read our documentation](/documentation/developer-guide/development-cycle/build-overview/capsulas.md).
{% endhint %}

You can use the new AI Assistant for Capsules Docs Generation to:

* **Automate documentation creation:** the AI analyzes the capsule’s functionality and automatically creates detailed documentation, saving users time.
* **Ensure consistency:** by standardizing the documentation format, the AI ensures that all capsules are documented consistently, reducing errors and ambiguities.
* **Enhance understanding:** the generated documentation includes clear descriptions of the purpose, functionality and use of the capsule, making it easier for developers to understand the pipelines and fix bugs.
* **Reduce repetitive tasks:** developers can focus on creating new capsules instead of repeatedly documenting existing ones, increasing overall productivity.
* **Offer more control to developers:** the suggested documentation can be reviewed, edited, and published by the developer before being shared with other team members.

## How to use the AI Assistant for Capsules Docs Generation feature:

1. In a capsule, select the **Settings** icon in the top right corner. Within the **Documentation** tab, click the **Generate Documentation with AI** button.
2. Once the capsule is published, the documentation will be available in the pipeline and can then be accessed.
3. When creating a pipeline, select your capsule and then click the **Docs** icon to access the capsule’s documentation in markdown.

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4523BaA7JfghHEYBbLWY%2Fuploads%2FU25YveUfnjPG9ghWckqc%2FCapsules_Documentation%20(ENG).mp4?alt=media&token=8195062b-4c16-4654-a15b-0301dfb83de4>" %}

{% hint style="info" %}
Please note that the documentation will always be generated in English.
{% endhint %}


---

# 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.digibee.com/documentation/developer-guide/development-cycle/build-overview/capsulas/ai-assistant-for-capsules-docs-generation.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.
