SDK DocumentationWorktual Assist SDK (Without UI)

Worktual Assist SDK (Without UI)

Raw chatbot client. It asks the same RAG as the widget and returns the answer, citations, and token usage. It does not render a chat UI.

@worktual_limited/chatbot-wui

Contact Us

Overview

Install

npm i @worktual_limited/chatbot-wui

Chat

import { ChatClient } from "@worktual_limited/chatbot-wui";

const client = new ChatClient({
  accessToken: "identity-jwt",
  superDomainId: "4204",
  subDomainId: "1002",
  baseUrl: "https://unified-api.worktual.com",
});

const reply = await client.chat("What are your return policies?", "s1");
console.log(reply.answer, reply.citations);

await client.endSession(reply.session_id);
In this document
Worktual Assist SDK (Without UI)
Overview
Install
Chat
↑ Back to top