docs: Add aiAssistantTools and autoOpenFirstItem widget config props#337
Merged
swapnil-cometchat merged 2 commits intomainfrom Apr 23, 2026
Merged
docs: Add aiAssistantTools and autoOpenFirstItem widget config props#337swapnil-cometchat merged 2 commits intomainfrom
swapnil-cometchat merged 2 commits intomainfrom
Conversation
…widget - Add aiAssistantTools configuration block with getCurrentWeather tool example - Add createTicket tool example demonstrating ticket creation functionality - Include tool examples across all three authentication flow code samples - Provide clear comments explaining tool implementation patterns - Help developers understand how to define and integrate custom tools with AI agents
…gration - Add `autoOpenFirstItem` configuration parameter to all three integration examples - Document `autoOpenFirstItem` option in configuration tables with description and default behavior - Clarify that setting to `false` prevents automatic opening of first conversation on widget load - Defaults to `true` to maintain existing behavior
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
PrajwalDhuleCC
approved these changes
Apr 23, 2026
raj-dubey1
approved these changes
Apr 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds documentation for two new Chat Widget configuration properties:
aiAssistantToolsandautoOpenFirstItem.Changes
ai-agents/chat-widget.mdxaiAssistantToolsprop to all three auth flow examples (Guest, UID, Auth Token).getCurrentWeather,createTicket) showing how to wire up client-side tool handlers that the AI agent can invoke.widget/html/integration.mdxautoOpenFirstItemas a commented-out optional prop in all three auth flow code blocks (Guest, UID, Auth Token).autoOpenFirstItemrow to each "Update these values" settings table with description: when set tofalse, the widget does not automatically open the first conversation on load (defaults totrue).Testing