Skip to content

feat: integrate Ozwell AI chat widget and define tool schemas#162

Open
Dharp02 wants to merge 2 commits into
mainfrom
jerry-integration
Open

feat: integrate Ozwell AI chat widget and define tool schemas#162
Dharp02 wants to merge 2 commits into
mainfrom
jerry-integration

Conversation

@Dharp02
Copy link
Copy Markdown
Collaborator

@Dharp02 Dharp02 commented May 14, 2026

This pull request introduces a major new integration: the Ozwell AI chat widget is now embedded into the authenticated shell of the app. The OzwellWidget enables AI-powered interactions, allowing users to navigate, manage time tracking, tickets, and teams via natural language. Supporting this, the PR defines a comprehensive schema for all AI-accessible tools and refactors navigation to use the app's router for a more seamless experience. It also improves UX by ensuring the main content scrolls to the top on route changes.

Youtube video: https://youtube.com/shorts/CaydbNZpgz8?si=OnYNgz65vGSZ7bH8

Ozwell AI Integration:

  • Added OzwellWidget component, which mounts the Ozwell AI chat widget, injects the loader script, keeps the widget's context in sync with app state (user, team, page), and handles all AI tool calls for navigation, clock, tickets, and teams.
  • Embedded OzwellWidget into the main app layout so the AI chat bubble is available across the authenticated shell. [1] [2]

AI Tooling and Schema:

  • Introduced ozwell-tools.ts, defining the schema for all tools the AI agent can use (navigation, reading context, clock, tickets, teams), specifying parameters, descriptions, and requirements for each tool.

Navigation and UX improvements:

  • Refactored navigation links in ClockPage to use the app's router (navigate) instead of anchor tags, ensuring client-side navigation and a smoother experience. [1] [2]
  • Ensured the main content area scrolls to the top on every route change for consistent UX. [1] [2]

Other:

  • Added useRef import in AppLayout.tsx to support the new scroll-to-top behavior.

@Dharp02 Dharp02 self-assigned this May 14, 2026
@Dharp02 Dharp02 linked an issue May 14, 2026 that may be closed by this pull request
@Dharp02 Dharp02 mentioned this pull request May 14, 2026
…n styling

Co-authored-by: Copilot <copilot@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

Jerry Integration

2 participants