Logo Webchat Setup

Webchat Setup

Tổ chức
Cognigy
webchat-setup

Use when the user wants to deploy a Cognigy agent to a Webchat endpoint — creating or updating the endpoint, style presets, layout/behavior settings, and the embed snippet.

Tổng quan

Nhà phát hànhCognigy
Kho mãcognigy-plugin
Tên kỹ năngwebchat-setup
Sao
20
Bản fork
14
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Đầy đủ trong hướng dẫn

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được Cognigy công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Webchat Setup trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/Cognigy/cognigy-plugin/tree/main/plugin/skills/webchat-setup
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Cognigy/cognigy-plugin.git /tmp/cognigy-plugin
mkdir -p .claude/skills
cp -r /tmp/cognigy-plugin/plugin/skills/webchat-setup .claude/skills/webchat-setup
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Webchat Setup trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Webchat Setup ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Webchat Setup không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Webchat v3 Setup Guide

For an AI Agent built with manage_agent, create the endpoint with agentId (plus projectId) instead of flowId; everything else below is the same.

What is Webchat v3?

Webchat v3 is Cognigy's embeddable chat widget for websites. It connects to a Webchat v3 Endpoint, which links a Flow to the widget and holds all appearance/behavior configuration.

Quick Start — Minimal Webchat

  1. Ensure an agent + flow exist: create_ai_agent { name: "My Agent" }
  2. Create a webchat endpoint: manage_webchat { projectId: "...", flowId: "...", name: "My Webchat" }
  3. The response includes demoWebchatUrl — open it in a browser to test immediately.
  4. Always show demoWebchatUrl to the user by default. Only provide configUrl/embeddingSnippet when asked about embedding or production deployment.

Quick Start — Update Existing Webchat

manage_webchat { endpointId: "...", layout: { colors: { primaryColor: "#0052cc" } }, behavior: { renderMarkdown: true } }

CREATE vs UPDATE:

  • To create: omit endpointId and provide projectId + flowId. A new webchat3 endpoint is always created.
  • To update: provide endpointId. Only the specified fields are changed; everything else is preserved.
  • The tool never auto-detects or modifies existing endpoints. To update, first find the endpointId using list_resources { resourceType: "endpoint", projectId }.

Style Presets

Use stylePreset to apply a predefined look in one call:

manage_webchat { endpointId: "...", stylePreset: "modern" }

classic (default)

  • Chat window: 460px, bot output max-width: 73%, bot output border: on
  • Agent message bg: #ffffff, always scroll, no streaming collation, no progressive rendering, markdown on

modern

  • Chat window: 900px, bot output max-width: 100%, bot output border: off
  • Agent message bg: #ffffff, scroll to last input, streaming collation on, progressive rendering on, markdown on, input collation on

slick

  • Chat window: 600px, bot output max-width: 100%, bot output border: off
  • Agent message bg: #cccccc, scroll to last input, streaming collation on, progressive rendering off, markdown on, input collation on

Presets set layout + behavior fields. You can override individual fields after applying a preset by including them in the same call.

Settings Reference

layout

FieldTypeDefaultDescription
titlestringagent nameWebchat title bar text
logoUrlstring—URL to header logo image (28x28px recommended, JPG/PNG/SVG/GIF)
chatWindowWidthnumber460Chat window width in px
botOutputMaxWidthnumber73Bot output max-width as percentage (1-100)
disableBotOutputBorderbooleanfalseHide chat bubble border around bot output
maxInputRowsnumber—Max lines in the reply input field before scrollbar
enableInputCollationbooleanfalseCombine rapid typed inputs into one message
inputCollationTimeoutnumber1000Delay (ms) before collating inputs
dynamicImageAspectRatiobooleanfalseMaintain original image proportions
disableInputAutocompletebooleanfalseDisable browser autocomplete in input
enableGenericHtmlbooleanfalseApply styling to HTML in text messages
allowJsInHtmlbooleanfalseAllow onclick/onload in HTML messages
allowJsInUrlsbooleanfalseAllow javascript: URLs in buttons
useAgentAvatarsbooleanfalseShow separate avatar/name for bot vs human
botAvatarNamestring—Name above bot messages
botAvatarLogoUrlstring—Logo above bot messages
humanAvatarNamestring—Name above human agent messages
humanAvatarLogoUrlstring—Logo above human agent messages

layout.colors

FieldTypeDefaultDescription
primaryColorstring—Primary color (hex, e.g. "#0052cc")
secondaryColorstring—Secondary color
chatBackgroundstring—Chat interface background color
agentMessageBgstring"#ffffff"Bot message background
userMessageBgstring—User message background
textLinkstring—Text link color

behavior

FieldTypeDefaultDescription
scrollingBehavior"alwaysScroll" / "scrollToLastInput""alwaysScroll"How chat scrolls on new messages
collateStreamedOutputsbooleanfalseMerge streamed text into one bubble
progressiveMessageRenderingbooleanfalseShow text appearing progressively
renderMarkdownbooleantrueRender markdown in bot outputs
enableTypingIndicatorbooleanfalseShow typing animation
inputPlaceholderstring"Type something…"Placeholder text in reply field
messageDelaynumber500Delay (ms) before showing bot response
focusInputAfterPostbackbooleanfalseFocus input after button click
enableConnectionStatusIndicatorbooleanfalseShow warning on lost connection
enableSttbooleanfalseSpeech-to-text microphone button
enableTtsbooleanfalseText-to-speech for bot messages
collectMetadatabooleanfalseCollect browser metadata (language, location, device)
displayAIAgentNoticebooleantrueShow "chatting with AI" notice
aiAgentNoticeTextstring"You're now chatting with an AI Agent."Notice text
enableScrollButtonbooleantrueShow scroll-to-bottom button

startBehavior

FieldTypeDefaultDescription
mode"textField" / "button" / "autoSend""textField"How conversation starts
textPayloadstring—First message sent to agent (button/autoSend)
dataPayloadstring—Additional data sent to flow (button/autoSend)
displayTextstring—Simulated user input bubble text (button/autoSend)
buttonTitlestring—Start button label (button mode only)

homeScreen

FieldTypeDefaultDescription
enabledbooleanfalseShow home screen on launch
welcomeTextstring"Welcome! How can we help?"Greeting message
backgroundImagestring—Background image URL (460x608px)
backgroundColorstring—CSS color/gradient for background
startConversationButtonTextstring"Start conversation"Button text
conversationStartersarray—Up to 5 items: { title, type: "postback"/"url", value }
previousConversationsobject—See sub-fields below

homeScreen.previousConversations

FieldTypeDefaultDescription
enabledbooleanfalseShow previous conversations button
enableDeleteAllbooleanfalseAllow deleting all conversations
buttonTextstring"Previous conversations"Button label
titlestring—Screen header
startNewButtonTextstring"Start new conversation"New conversation button text

teaserMessage

FieldTypeDefaultDescription
textstring—Message beside webchat icon
showInChatbooleanfalseAlso show teaser inside chat
conversationStartersarray—Up to 5: { title, type: "postback"/"url", value }

chatOptions

FieldTypeDefaultDescription
enabledbooleanfalseEnable chat options menu
titlestring"Chat options"Options screen title
enableDeleteConversationbooleanfalseLet users delete current conversation

chatOptions.quickReplies

FieldTypeDefaultDescription
enabledbooleanfalseShow quick replies in options
sectionTitlestring"People are also interested in"Section header
itemsarray—Up to 5: { title, type: "postback"/"url", value }

chatOptions.textToSpeech

FieldTypeDefaultDescription
showTogglebooleanfalseShow TTS toggle in options
toggleLabelstring"Enable text-to-speech"Toggle label
activateByDefaultbooleanfalseTTS on by default

chatOptions.rating

FieldTypeDefaultDescription
enabledbooleanfalseEnable conversation rating
titleTextstring"Please rate your chat experience"Rating prompt
commentPlaceholderstring"Type something here"Feedback field placeholder
submitButtonTextstring"Send feedback"Submit button text
submittedBannerTextstring"Your feedback was submitted"Confirmation banner

chatOptions.footer

FieldTypeDefaultDescription
enabledbooleanfalseShow footer in options
itemsarray—Up to 2: { title, url }

privacyNotice

FieldTypeDefaultDescription
enabledbooleanfalseRequire privacy acceptance before chat
titlestring"Privacy Notice"Notice heading
textstring"Please accept our privacy policy to start your chat"Notice body (supports Markdown)
submitButtonstring"Submit"Accept button text
policyLinkTitlestring—Privacy policy link label
policyLinkUrlstring—Privacy policy URL

businessHours

FieldTypeDefaultDescription
enabledbooleanfalseRestrict to business hours
mode"inform" / "disable" / "hide""inform"Out-of-hours behavior
informationTextstring—Message shown outside hours
informationTitlestring—Title shown outside hours
timezonestring—IANA timezone (e.g. "Europe/Berlin")
schedulearray—{ dayOfWeek, startTime, endTime } per day

unreadMessages

FieldTypeDefaultDescription
enableTitleIndicatorbooleanfalseShow count in browser tab
enableBadgebooleanfalseShow unread count badge
enablePreviewbooleanfalseShow preview bubble
enableSoundbooleanfalsePlay notification sound

maintenance

FieldTypeDefaultDescription
enabledbooleanfalseActivate maintenance mode
mode"inform" / "disable" / "hide""inform"Maintenance behavior
informationTextstring—Maintenance message
informationTitlestring—Maintenance title

watermark

FieldTypeDefaultDescription
type"default" / "custom" / "none""default"Watermark type
textstring"Powered by Cognigy.AI"Custom watermark text
urlstring"https://www.cognigy.com/"Custom watermark URL

persistentMenu

FieldTypeDefaultDescription
enabledbooleanfalseShow persistent menu
titlestring—Menu title
itemsarray—{ title, payload } pairs

attachmentUpload

FieldTypeDefaultDescription
enabledbooleanfalseAllow file uploads
dropzoneTextstring"Drop to attach"Dropzone label

webchatIcon

FieldTypeDefaultDescription
animation"none" / "bounce" / "swing" / "pulse""none"Icon animation
animationIntervalnumber5Seconds between animations
animationSpeed"slow" / "normal" / "fast" / "superfast""normal"Animation speed

customJson

Type: string (raw JSON). Escape-hatch for advanced Webchat Custom Settings not covered above. Example: manage_webchat { endpointId: "...", customJson: "{"colors":{"primaryColor":"red"},"customTranslations":{"network_error":"Netzwerkfehler"}}" }

Common Recipes

Branded Webchat

manage_webchat { projectId: "...", flowId: "...", name: "Support Chat", layout: { title: "Acme Support", logoUrl: "https://acme.com/logo.png", colors: { primaryColor: "#0052cc", userMessageBg: "#e3f2fd" } } }

Modern Streaming Chat

manage_webchat { endpointId: "...", stylePreset: "modern", behavior: { enableTypingIndicator: true } }

Support Bot with Business Hours

manage_webchat { endpointId: "...", businessHours: { enabled: true, mode: "inform", timezone: "America/New_York", informationText: "We're available Mon-Fri 9-5 ET.", schedule: [ { dayOfWeek: "Monday", startTime: "09:00", endTime: "17:00" }, { dayOfWeek: "Tuesday", startTime: "09:00", endTime: "17:00" }, { dayOfWeek: "Wednesday", startTime: "09:00", endTime: "17:00" }, { dayOfWeek: "Thursday", startTime: "09:00", endTime: "17:00" }, { dayOfWeek: "Friday", startTime: "09:00", endTime: "17:00" } ] }, chatOptions: { enabled: true, rating: { enabled: true } }, privacyNotice: { enabled: true, policyLinkUrl: "https://acme.com/privacy" } }

Home Screen with Conversation Starters

manage_webchat { endpointId: "...", homeScreen: { enabled: true, welcomeText: "Hi! What can I help you with?", conversationStarters: [ { title: "Track my order", type: "postback", value: "track order" }, { title: "Return an item", type: "postback", value: "return item" }, { title: "Help Center", type: "url", value: "https://acme.com/help" } ] } }

Testing

The manage_webchat response includes demoWebchatUrl — a direct browser link to the Cognigy Demo Webchat page where the user can interact with the configured widget immediately. Always present this URL to the user as a clickable link after every successful create or update — do not send them to the Cognigy UI to find it.

You can also append query parameters for testing:

  • ?user=testuser — set a specific user ID
  • ?user=testuser&sessionId=mysession — set user and session

Embedding (Production)

When the user asks about deploying to their website, use the configUrl and embeddingSnippet from the response:

html
<script src="https://github.com/Cognigy/Webchat/releases/latest/download/webchat.js"></script>
<script>
  window.cognigyWebchat.open({
    configUrl: "CONFIG_URL_HERE"
  });
</script>

Replace CONFIG_URL_HERE with the configUrl from the manage_webchat response.

Prerequisites

  • A Flow must exist (from create_ai_agent or manual creation)
  • An LLM must be configured in the project for the agent to generate responses
  • Use list_resources { resourceType: "endpoint", projectId } to find existing webchat endpoints

Câu hỏi thường gặp

Kỹ năng AI Webchat Setup làm được gì?

Use when the user wants to deploy a Cognigy agent to a Webchat endpoint — creating or updating the endpoint, style presets, layout/behavior settings, and the embed snippet.

Vì sao nên dùng Webchat Setup trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Webchat Setup là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Webchat Setup trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Cognigy/cognigy-plugin/tree/main/plugin/skills/webchat-setup. TypingMind đọc tệp SKILL.md và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Webchat Setup?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Webchat Setup với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Webchat Setup với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Webchat Setup có miễn phí không?

Có. Kỹ năng này được Cognigy phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇