Logo di Webchat Setup

Webchat Setup

Organizzazione
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.

Panoramica

AutoreCognigy
Repositorycognigy-plugin
Nome della skillwebchat-setup
Stelle
20
Fork
14
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da Cognigy su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Webchat Setup in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/Cognigy/cognigy-plugin/tree/main/plugin/skills/webchat-setup
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Webchat Setup in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Webchat Setup non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Webchat Setup non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Webchat Setup su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Webchat Setup è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Webchat Setup in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/Cognigy/cognigy-plugin/tree/main/plugin/skills/webchat-setup. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Webchat Setup?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Webchat Setup?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Webchat Setup: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Webchat Setup è gratuita?

Sì. È pubblicata su GitHub da Cognigy con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇