Skip to content

Commit 2f17a87

Browse files
committed
context aware chat widget
1 parent c810631 commit 2f17a87

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

docs/ai-interfaces/ai-agents/interact-with-ai-agents.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ The widget provides a chat interface where you can ask questions and receive res
5353

5454
The widget will inherit all the agent's configuration including the prompts, conversation starters, tool access, etc.
5555

56+
**Context Awareness**: The widget automatically understands the context of the page and entity where it's located. For example, when placed on a team entity page, you can ask questions like "What is this team's lead time for change?" or "How many open bugs does the team have?" without needing to specify the team name.
57+
5658
Conversation starters appear in the initial state, helping users understand what they can ask the agent. Users can either click a starter to begin a new chat or type their own question.
5759
<img src='/img/ai-agents/AIAgentsWidgetConversationStarters.png' width='80%' border='1px' />
5860

docs/ai-interfaces/ai-chat-widget.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ The AI Chat Widget is a dashboard component that:
2424
- **Uses configured tools**: Operates with the specific [Port AI tools](/ai-interfaces/port-ai/overview#port-ai-tools) you select.
2525
- **Customizable placement**: Can be embedded in any dashboard layout.
2626
- **Respects permissions**: Only accesses data based on user permissions.
27+
- **Context-aware**: Automatically understands the page and entity context where it's located, allowing you to ask questions about the specific entity or page without explicitly mentioning it.
2728

2829
## Widget Configuration
2930

@@ -82,6 +83,17 @@ Users can type their own questions and requests directly into the chat interface
8283
- Show visual indicators when tools are being used.
8384
- Provide links to relevant Port pages and actions.
8485

86+
### Context Awareness
87+
88+
The AI Chat Widget automatically understands the context of the page and entity where it's located. This means you can ask questions about the specific entity or page without needing to explicitly mention it.
89+
90+
**Examples:**
91+
- On a **team entity page**: "What is this team's lead time for change?" or "How many open bugs does the team have?"
92+
- On a **service entity page**: "What's the deployment status?" or "Show me recent incidents"
93+
- On a **dashboard**: Questions will be answered in the context of the dashboard's scope
94+
95+
The widget uses this context to provide more relevant and accurate responses, making it easier to get information about the specific entity or page you're viewing.
96+
8597
### Tool Transparency
8698
The widget interface provides enhanced capabilities and visual indicators showing which tools are being used:
8799

@@ -314,4 +326,17 @@ For comprehensive information, see [Security Considerations](#security-considera
314326
- [Data Privacy & Retention](/ai-interfaces/port-ai/security-and-data-controls#data-privacy--retention) - How your data is handled and stored.
315327
</details>
316328

329+
<details>
330+
<summary><b>Does the widget understand the context of the page it's on? (Click to expand)</b></summary>
331+
332+
Yes! The AI Chat Widget automatically understands the context of the page and entity where it's located. This means you can ask questions about the specific entity or page without needing to explicitly mention it.
333+
334+
**Examples:**
335+
- On a **team entity page**: "What is this team's lead time for change?" or "How many open bugs does the team have?"
336+
- On a **service entity page**: "What's the deployment status?" or "Show me recent incidents"
337+
- On a **dashboard**: Questions will be answered in the context of the dashboard's scope
338+
339+
The widget uses this context to provide more relevant and accurate responses. Learn more in [Context Awareness](#context-awareness).
340+
</details>
341+
317342
The AI Chat Widget provides a powerful way to bring [Port AI](/ai-interfaces/port-ai/overview) capabilities directly into your team's daily workflows through customized dashboard experiences.

0 commit comments

Comments
 (0)