> For the complete documentation index, see [llms.txt](https://docs.welkinhealth.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.welkinhealth.com/care/data-views/ai-widget.md).

# AI Data View

## Overview

The AI Data View displays AI-generated content based on a patient’s record directly within the Care Portal. The content is generated according to the prompt configured for the data view in Designer, using the AI provider selected for your environment in Admin.

The AI Data View appears in the patient profile when an administrator adds it to a Dashboard.

<div data-with-frame="true"><figure><img src="https://1217226817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQvXoGL7kKvEhUWEGGIAn%2Fuploads%2F0bCB5SzIVeOO6AEbyIdv%2Fimage.png?alt=media&#x26;token=104a9ed3-c800-4265-93fe-b3a7521e21a5" alt="" width="563"><figcaption></figcaption></figure></div>

{% hint style="info" %}
This passive summary widget is a different feature from [AI Assistant](/care/ai-assistant.md), the interactive chat panel available from any patient profile.
{% endhint %}

***

## Reading the Summary

The widget card shows:

* **AI badge** — an "AI" label with a star icon identifies the widget as AI-generated content.
* **Title** — the name configured for this widget.
* **Generated on** — the date the current summary was produced.
* **Summary text** — the narrative summary of the patient's data.

***

## Summary States

| State          | What you see                                                                                       |
| -------------- | -------------------------------------------------------------------------------------------------- |
| **Generating** | A loading skeleton or a spinner with "Thinking…" followed by partial text as the summary is built. |
| **Ready**      | The full summary text is displayed with a "Generated on" date.                                     |
| **Failed**     | An error card reading "Unable to Generate Summary" with a **Refresh** button.                      |
| **No summary** | "No summary available." is shown if no data exists yet.                                            |

***

## Refreshing the Summary

When the summary can be regenerated, a **sync icon (↻)** appears in the top-right corner of the widget header. Click it to request a new summary.

If the underlying patient data has changed since the last summary was generated, the widget may automatically trigger a new generation without any action required from you.

While a new summary is being generated the sync icon spins and the widget shows a "Thinking…" indicator. The previous summary text remains visible until the new one is ready.

***

## Failed Summaries

If generation fails, the widget displays:

* "Unable to Generate Summary"
* "We couldn't generate the summary at this time. Please try again."
* A **Refresh** button to retry immediately.

If the problem persists, contact your administrator to verify the AI Assistant configuration in Admin.

***

## Related Topics

* [AI Assistant](/care/ai-assistant.md) — the interactive AI chat panel for patient profiles
* [Data Views](/care/data-views/data-views.md) — other structured data displays in the patient profile
* [New Homepage](/care/getting-started/new-homepage.md) — Dashboards and Widgets in the Care Portal
* [AI Assistant (Admin)](https://docs.welkinhealth.com/admin/apis-and-integrations/ai-assistant) — configuring the AI provider
* [AI Data View (Designer)](https://docs.welkinhealth.com/designer/ai-features/ai-data-view) — configuring the prompt and data references for this widget


---

# 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.welkinhealth.com/care/data-views/ai-widget.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.
