Logotipo de Webchat Setup

Webchat Setup

Organización
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.

Descripción general

EditorCognigy
Repositoriocognigy-plugin
Nombre de la habilidadwebchat-setup
Estrellas
20
Forks
14
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando una petición es realmente relevante.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por Cognigy en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Webchat Setup en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/Cognigy/cognigy-plugin/tree/main/plugin/skills/webchat-setup
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → Desde URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese 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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Webchat Setup en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición es relevante, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Webchat Setup automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Webchat Setup no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición relevante, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo 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

Preguntas frecuentes

¿Qué hace la habilidad de 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.

¿Por qué usar Webchat Setup en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Webchat Setup está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Webchat Setup en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/Cognigy/cognigy-plugin/tree/main/plugin/skills/webchat-setup. TypingMind lee su archivo SKILL.md y la instala como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Webchat Setup?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Webchat Setup?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Webchat Setup con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Webchat Setup?

Sí. Cognigy la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇