Chat widget

Installing and customising the website widget.

Articles

Rendering Custom UI in the Chat Widget

If your MCP tool returns a payload in the shape below, the chat widget will render it as a real interactive component (product card, swipeable carousel, etc.) instead of plain text. CTAs are plain links β€” they open in a new tab. How It Works Your tool returns JSON wrapped in a envelope. The widget detects it, validates the shape, and renders the matching component. Anything unrecognized falls back to text. Available Shapes Product Card β€” Single Product Product Grid β€” Multiple Products Renders as a swipeable carousel; one card at a time with dot pagination If has length 1, the widget renders a single fixed-width card automatically. Tool Description Matters More Than the Schema The AI only emits these payloads when your tool description tells it to. Be explicit and tell it not to also describe the products in text: β€œDisplay a visual grid of products to the user. Use this whenever the user is browsing or asking to see products β€” instead of describing them in text. After calling this tool, your text response should be empty or a single short lead-in. Never list, summarize, or describe the products in prose.” If the AI keeps double-narrating (β€œHere are some options:” + the cards), tighten the description further. Field Rules and must be valid URLs is a pre-formatted string (e.g. "€93.50", "$214.99") β€” no currency math on the widget side is optional; values are CSS colors Extra fields (was, discount, available, etc.) are silently ignored β€” safe to include for your own tool's logic What CTAs Do Every renders as a link that opens in a new tab. The customer's site decides what that URL does (product page, checkout, etc.). The widget does not fire events back to the host page β€” keep all interactivity behind the URL. Coming Soon <a url="https://utfs.io/f/gtw0o9ZiVDLOv5i7UxGyWekphrBxLG49CatSPAMb3DN81Q02" name="ponudarcc.pdf" size="196948" mimetype="application/pdf" uploading="false" href="https://utfs.io/f/gtw0o9ZiVDLOv5i7UxGyWekphrBxLG49CatSPAMb3DN81Q02" data-file-attachment="" target="blank" rel="noopener noreferrer"> ponuda_rcc.pdf </a> Choice-grid (chips that send a reply back into the chat) β€” schema is defined, renderer not yet wired. Ping us if you need it.

Chat Widget

Part 1: Installation Guide (For Developers) The Starko ONE widget allows you to embed AI-powered support directly into your application. Follow the instructions below to integrate the widget into your website. General Settings Before installation, ensure your widget is configured correctly in the Starko Dashboard: Translations: Navigate to the AI Settings page to translate the widget interface into your desired language. Knowledge Hub: Ensure your articles are categorized correctly, as these will appear as "Collections" in the widget. Embed Code Locate your unique in the Installation tab. Use the following methods to add the widget to your project. Option A: Basic HTML/JavaScript Add this code before the closing tag of your website template. Option B: Next.js / React Create a new component (e.g., ) and use the following code: Part 2: User Guide (How to use the Widget) Welcome to the Starko ONE support widget. This tool allows you to find answers instantly, chat with our AI assistant, or manage your support tickets. Home Screen Overview When you open the widget, you will see the Home dashboard. This includes: Ask a Question: The primary button to start a conversation. Collections: Categories of support articles (e.g., Ticketing, Workspace settings, Threads) pulled directly from our Knowledge Hub. Navigation Tabs: Located at the bottom (Home, Inbox, Tickets). Chatting with Starko AI Click "Ask a question" to open the chat interface. Instant Greeting: You will be greeted immediately by the AI. AI Capabilities: The AI utilizes our entire Knowledge Hub to answer your questions. You can upload screenshots or documents directly into the chat for analysis. Context Awareness: The system uses your User ID to remember your context, ensuring a smooth conversation flow. Escalation & Human Support If the AI cannot resolve your issue, the system handles the handover automatically: Human Handoff: Depending on agent availability settings, the chat may transfer you directly to a human agent. Automatic Ticketing: If no agents are available, or if the AI cannot solve the issue, a Support Ticket is created automatically. User Persistence: If you specifically ask to speak to a human and live chat is disabled, the system will automatically open a ticket for you. Self-Service Knowledge Base If you prefer to browse, scroll down on the Home screen to view Collections. Clicking a category (e.g., Workspace Settings) lets you read static help articles and FAQs directly in the widget without leaving the page. Managing Your Activity Use the bottom navigation bar to manage your history: Inbox Tab: View your chat history. Conversations are saved and persistent, so you can close the browser and return later without losing your chat log. Tickets Tab: Track the status of your formal support requests. View Status: See if your ticket is Open, In Progress, or Closed. Reply: You can send replies to existing tickets directly from this tab.

Customising the widget: texts, starters and installation

The chat widget is the fastest channel to switch on and the one most teams customise most. The settings live under Settings β†’ AI assistant, split into five pages: Behaviour, Translations, Actions, Starters and Installation. This article covers the pages that change what visitors see. Installation The Installation page shows your client key and the snippet to paste before the closing </body> tag of your site. There is a plain HTML version and a React or Next.js component. The page is also the widget's developer reference, with sections on: Configuration (props): position, colours, default language and what the home screen shows. Languages: which language the widget opens in. Doc mode (inline assistant): embed the assistant inside a documentation page instead of as a floating bubble. Page actions: client-side actions the assistant can call on your page, for example opening a dialog or pre-filling a form. Error reporting: send front-end errors with the visitor's session so Starko AI has them when it fixes a bug. Instance API: open, close and send messages to the widget from your own code. Build your own help center (v1 API): fetch public articles and collections to render your own pages. Secure identity: sign the user id so nobody can impersonate a logged-in customer. ai settings installation Translations The Translations page holds every piece of text the widget shows: the greeting, button labels, the placeholder in the message box, the names of the Home, Inbox and Tickets tabs. Starko pre-translates them so the very first visitor in a language sees their own words. Add a language code and press Translate now, then correct anything you want phrased differently. ai settings translations Conversation starters Starters are the suggested questions shown on the widget's home screen before a visitor types. Good starters are the three or four things people ask most, phrased the way they ask them. ai settings starters Collections in the widget The widget's home screen lists your public Knowledge Hub collections so visitors can browse articles without asking. Keep collection names short and make sure the articles inside are published. Look and tone The widget colour follows your workspace colour under Settings β†’ General. The greeting, tone of voice and reply length are set on the Behaviour page, together with what the assistant does when it cannot help. Testing changes Open your site in a private window after saving. Text changes apply immediately. If you changed the greeting in several languages, switch your browser language to check each one.