@suturatech/chat-vue

Vue 3 SDK for Sutura Chat: a composable to build an AI chat answering from your own documents.
595
Install
npm install @suturatech/chat-vue
Latest Version:0.1.2
Vue:3
License:MIT
Last Updated:Oct 7, 2026
Links: npm
Maintainer: suturatechnology

@suturatech/chat-vue

Vue 3 SDK for Sutura Chat — the AI assistant that answers your customers from your own documents, and only from them.

A composable exposing the conversation state, so you can build the chat interface your way. Answers are streamed in real time, with their cited sources.

Installation

npm install @suturatech/chat-vue

Requires Vue 3.4 or later.

Usage

<script setup>
import { ref } from "vue";
import { useSuturaChat } from "@suturatech/chat-vue";

const { etat, envoyer, reessayer } = useSuturaChat({
  publicKey: "pk_live_ab12cd34ef56",
  botId: "bot_01J8ZK7QW3",
});

const question = ref("");
const poser = () => {
  envoyer(question.value);
  question.value = "";
};
</script>

<template>
  <p v-for="m in etat.messages" :key="m.id">{{ m.content }}</p>

  <form @submit.prevent="poser">
    <input v-model="question" :disabled="etat.isStreaming" />
    <button>Send</button>
  </form>

  <button v-if="etat.error" @click="reessayer">Try again</button>
</template>

Your public key and bot ID are shown in the Sutura Chat console, under API keys.

API

useSuturaChat(options) returns:

Name Description
etat Read-only ref: messages, isStreaming, error, online, conversationId.
config Read-only ref: the bot's public configuration (name, welcome message, suggested questions…).
envoyer(texte) Sends a message.
reessayer() Resends the last message after an error.
annuler() Stops the answer being streamed.
reinitialiser() Starts a new conversation.
noter(messageId, 1 | -1) Rates an answer.

The client is released automatically when the component's scope is disposed. The composable can also be used outside a component, for example in a Pinia store.

Main options: publicKey, botId, locale, context, persistSession, consentRequired, and the onMessage, onError, onEscalate, onLead callbacks.

Allowed domains

Each public key only works on the domains listed for it in the console. Add localhost while developing.

Documentation

Full documentation: https://chat.suturatechnology.com/documentation

Related Packages

@kim123rla/hcc-bdp-agent

CENTRI Agent - RAG 검색 챗봇 모듈 (iframe 격리, Vue 2.7).

670
@frost1994/agentic-vue

AI 助手 Vue3 组件 + Pinia + SDK 入口

2,995
chapi-ai

Chatbot de IA con RAG: multi-proveedor (Anthropic/OpenAI/Google/Groq), grounding...

775
@aivue/chatbot

AI-powered chat components for Vue.js with RAG (Retrieval-Augmented Generation)...

6,976 17
ai-suspended-ball-chat

一个功能强大的AI聊天组件,支持流式响应、图片上传、语音播报、历史记录管理等功能。...

65,480 37

Version History

Version Released Vue License
0.1.2 >=3.4 MIT
0.1.1 >=3.4 Proprietary
0.1.0 >=3.4 Proprietary
Pre-releases (1)
Version Released License
0.0.0-stage