Logo de Webchat Setup

Webchat Setup

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

Présentation

ÉditeurCognigy
Dépôtcognigy-plugin
Nom de la compétencewebchat-setup
Étoiles
20
Forks
14
Fichiers inclus
Instructions uniquement
LicenceMIT
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont en simple Markdown, et non en code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Tout dans les instructions

    Tout ce dont le modèle a besoin se trouve dans les instructions : aucun fichier supplémentaire à synchroniser.

  • Open source

    Publiée par Cognigy sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Webchat Setup dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Collez l’URL du dossier de la compétence indiquée ci-dessous, puis confirmez.
    https://github.com/Cognigy/cognigy-plugin/tree/main/plugin/skills/webchat-setup
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter → Via URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

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
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Webchat Setup dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Webchat Setup dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, Webchat Setup n’est pas lié au modèle pour lequel cette compétence a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

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

Foire aux questions

À quoi sert la compétence 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.

Pourquoi utiliser Webchat Setup sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Webchat Setup se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Webchat Setup dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/Cognigy/cognigy-plugin/tree/main/plugin/skills/webchat-setup. TypingMind lit le fichier SKILL.md et l’installe sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Webchat Setup ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Webchat Setup ?

Autant que vous le souhaitez. Tant qu’un modèle prend en charge les compétences, vous pouvez utiliser Webchat Setup avec lui : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Webchat Setup est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par Cognigy sous licence MIT. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, modèles de documents ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇