npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@uipath/ui-widgets-conversational-agent-chat

v1.0.3

Published

A React conversational agent chat component

Readme

Conversational Agent Chat Widget

A React component that provides a conversational AI chat interface powered by UiPath Conversational Agents. Built on top of UiPath Apollo React components, this widget enables seamless integration of AI-powered chat functionality into your applications.

Features

  • Real-time streaming responses from conversational agents
  • File attachment support with drag and drop
  • Tool call visualization and tracking
  • Conversation history management
  • Start new conversations or continue existing ones
  • Built on Apollo React chat components
  • Built with TypeScript for type safety

Installation

npm install @uipath/ui-widgets-conversational-agent-chat

Peer Dependencies

This package requires the following peer dependencies:

npm install react@^19.2.0 react-dom@^19.2.0 @uipath/uipath-typescript@^1.2.0

Usage

Note: Add either light or dark class to your HTML <body> element to enable proper theming.

import { ConversationalAgentChat } from "@uipath/ui-widgets-conversational-agent-chat";
import "@uipath/ui-widgets-conversational-agent-chat/ConversationalAgentChat.css";
import { UiPath } from "@uipath/uipath-typescript/core";
import { useEffect, useState } from "react";

function App() {
  const [sdk, setSdk] = useState<UiPath | null>(null);

  useEffect(() => {
    const init = async () => {
      const uipath = new UiPath({
        baseUrl: "https://cloud.uipath.com",
        orgName: "your-org",
        tenantName: "your-tenant",
        secret: "your-secret",
      });
      await uipath.initialize();
      setSdk(uipath);
    };
    init();
  }, []);

  if (!sdk) return <div>Loading...</div>;

  return <ConversationalAgentChat sdk={sdk} agentId={123} folderId={456} />;
}

API Reference

Props

| Prop | Type | Required | Description | | ---------- | -------- | -------- | ------------------------------------------------ | | sdk | UiPath | Yes | UiPath SDK instance for API communication | | agentId | number | Yes | The ID of the conversational agent release | | folderId | number | Yes | The folder ID where conversations will be stored |

ConversationalAgentPickerChat (agent picker + chat)

A higher-level component that lists all conversational agents accessible to a given SDK and opens a chat with the selected one. Useful when you don't know the agentId/folderId up front and want the user to pick.

Usage

import { ConversationalAgentPickerChat } from "@uipath/ui-widgets-conversational-agent-chat";
import "@uipath/ui-widgets-conversational-agent-chat/ConversationalAgentChat.css";
import { UiPath } from "@uipath/uipath-typescript/core";
import { useEffect, useState } from "react";

function App() {
  const [sdk, setSdk] = useState<UiPath | null>(null);

  useEffect(() => {
    const init = async () => {
      const uipath = new UiPath({
        baseUrl: "https://cloud.uipath.com",
        orgName: "your-org",
        tenantName: "your-tenant",
        secret: "your-secret",
      });
      await uipath.initialize();
      setSdk(uipath);
    };
    init();
  }, []);

  if (!sdk) return <div>Loading...</div>;

  return <ConversationalAgentPickerChat sdk={sdk} />;
}

Props

| Prop | Type | Required | Description | | ----------------- | ---------------------------------------------- | -------- | ---------------------------------------------------------------------- | | sdk | UiPath | Yes | UiPath SDK instance. Changing it refetches the list and resets the UI. | | locale | Locale | No | Passthrough to the inner chat. | | theme | "light" \| "dark" \| "light-hc" \| "dark-hc" | No | Passthrough to the inner chat. | | readOnly | boolean | No | Passthrough to the inner chat. | | overrideLabels | OverrideLabels | No | Passthrough to the inner chat. | | onAgentSelected | (agent: AgentSummary) => void | No | Fired when the user picks an agent (telemetry, routing, etc.). |

Behavior

  • Calls ConversationalAgent(sdk).getAll() on mount → renders one row per agent (name + description).
  • Clicking an agent swaps to the chat view with that agent's id and folderId.
  • "Back" clears the selection and returns to the list (no refetch).
  • If the user's accessible tenants live behind your own auth/chrome, switch tenants by rebuilding the UiPath instance and passing the new one as sdk — the picker handles the rest.

Features in Detail

Streaming Responses

The component supports real-time streaming of AI responses, providing a smooth conversational experience as the agent generates its reply.

File Attachments

Users can attach files to their messages via drag and drop or file picker.

Tool Call Tracking

When the conversational agent uses tools, the component automatically displays:

  • Tool name and input parameters
  • Execution status
  • Output results
  • Error handling

Session Management

The widget automatically handles:

  • Conversation creation and persistence
  • Session initialization and maintenance
  • Multiple conversation support via "New Chat"

Styling

The component comes with default styles. Import the CSS file in your application:

import "@uipath/ui-widgets-conversational-agent-chat/ConversationalAgentChat.css";

The chat interface supports both light and dark themes through the UiPath Apollo design system.

Development

Install Dependencies

npm install

Build the Package

npm run build

Run Tests

# Run tests once
npm test

# Run tests in watch mode
npm run test:watch

# Run tests with UI
npm run test:ui

# Run tests with coverage
npm run test:coverage

TypeScript Support

This package is written in TypeScript and includes type definitions. Import types as needed:

import type { ConversationalAgentChatProps } from "@uipath/ui-widgets-conversational-agent-chat";

License

MIT