Λογότυπο Xapps

Xapps

Οργανισμός
Cognigy
xapps

Use when the user wants to add xApps to a Cognigy flow — interactive HTML / Adaptive Card mini-apps rendered to the user, with the submitted data flowing back into the conversation. Covers the xApp flow nodes, the Init Session rule, and accessing xApp data.

Επισκόπηση

ΕκδότηςCognigy
Αποθετήριοcognigy-plugin
Όνομα δεξιότηταςxapps
Αστέρια
20
Forks
14
Συνοδευτικά αρχεία
6
Άδεια χρήσηςMIT
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • 6 συνοδευτικά αρχεία

    Σενάρια, πρότυπα και υλικό αναφοράς που μπορεί να διαβάζει το μοντέλο καθώς εργάζεται. Τα αρχεία είναι μόνο για ανάγνωση και δεν εκτελούνται ποτέ.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε από Cognigy στο GitHub. Διαβάστε το πηγαίο περιεχόμενο πριν εγκαταστήσετε τη δεξιότητα.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Xapps στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/Cognigy/cognigy-plugin/tree/main/plugin/skills/xapps
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Νέα δεξιότητα → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που διαβάζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

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/xapps .claude/skills/xapps
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Xapps σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Xapps μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Xapps δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλα κατά τη συνομιλία

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

xApps

xApps are interactive in-conversation mini-apps: you render an HTML page or an Adaptive Card to the user, they interact, and their submitted data flows back into the conversation. xApps are built as flow nodes managed with manage_flow_nodes (extension @cognigy/basic-nodes).

Two hard rules

  1. xApp: Init Session (initAppSession) must run before any other xApp node. It creates the session and populates input.apps.url (session URL) and input.apps.baseUrl. Every other xApp node depends on a live session. Creating an xApp node without a preceding initAppSession in the flow returns a _hints.warning — add Init Session first.
  2. Data comes back via input/context, not a return value — see "Accessing xApp data".

Where xApp nodes go

Like all manage_flow_nodes nodes, xApp nodes live inside a tool branch — never before the AI Agent Job node (see the flow-nodes guide). "Init Session at the beginning" means the beginning of the xApp sequence inside the tool branch, not the flow's absolute start.

Typical chain inside a tool:

tool node ──appendChild──▶ initAppSession
          ──append──────▶ showXAppAdaptiveCard { waitForInput: true, storeResultInContext: true, contextKey: "result" }
          ──append──────▶ code / say  (reads context.result or input.data._cognigy._app.payload)
                          ▶ Resolve Tool Action

Workflow

1. Create a tool — create_tool { aiAgentId, toolType: 'tool', name: 'Collect Details', config: { toolId: 'collect_details', description: 'Collect details via an xApp' } } → toolNodeId
2. Init the session — manage_flow_nodes { operation: 'create', flowId, parentNodeId: '<toolNodeId>', mode: 'appendChild', nodeType: 'initAppSession', label: 'xApp: Init Session' }
3. Show a UI + wait — manage_flow_nodes { operation: 'create', flowId, parentNodeId: '<initSessionNodeId>', mode: 'append', nodeType: 'showXAppAdaptiveCard', label: 'xApp: Show Card', config: { card: { ... }, waitForInput: true, storeResultInContext: true, contextKey: 'result' } }
4. Use the result — add a code/say node after it that reads context.result or input.data._cognigy._app.payload
5. List nodes — manage_flow_nodes { operation: 'list', flowId }

To let the user open the xApp from a button (rather than an inline overlay), add a say node with a web_url button after step 2 — see "Rendering an Open-xApp button" below.

Node types

initAppSession — xApp: Init Session

Creates the session. Place first among the xApp nodes. All fields optional.

FieldTypeDescription
backgroundColor / textColorstringCSS color for the shell page
logo"default" | "none" | "custom"Shell logo. custom requires logoUrl
logoUrlstringCustom logo URL (when logo: "custom")
faviconUrlstringBrowser-tab icon URL
pageTitlestringBrowser-tab title
appLoadingText / appLaunchErrorText / appErrorTextstringScreen texts
intermediateScreenCustomizationType"none" | "override" | "app"Intermediate screen mode
intermediateScreenOverrideTextstringWhen ...Type: "override"
intermediateScreenAppTemplateId / intermediateScreenAppTemplateDatastring / objectWhen ...Type: "app"
connectionScreenCustomizationType"none" | "override" | "app"Connection screen mode
connectionScreenOverrideConnectingText / ...InvalidText / ...UnavailableTextstringWhen ...Type: "override"
connectionScreenAppTemplateId / connectionScreenAppTemplateDatastring / objectWhen ...Type: "app"
json
{
  "operation": "create",
  "flowId": "<flowId>",
  "parentNodeId": "<toolNodeId>",
  "mode": "appendChild",
  "nodeType": "initAppSession",
  "label": "xApp: Init Session",
  "config": { "pageTitle": "Booking", "logo": "default" }
}

showXAppAdaptiveCard — xApp: Show Adaptive Card

Render an Adaptive Card. card is required.

FieldTypeRequiredDescription
cardobjectYesAdaptive Card JSON (build with the Adaptive Card Designer)
primaryColor / primaryContrastColorstringNoStyle overrides
waitForInputbooleanNoPause the flow until the user submits
storeResultInContextbooleanNoStore the submit payload in context (needs waitForInput)
contextKeystringNoContext key for the result (default "result")
autoOpen, closeOnSubmit, feedbackMessage, screenTitle, sendEventOnCloseIconClick, showCloseIcon—NoWebchat v3 overlay settings
json
{
  "operation": "create",
  "flowId": "<flowId>",
  "parentNodeId": "<initSessionNodeId>",
  "mode": "append",
  "nodeType": "showXAppAdaptiveCard",
  "label": "xApp: Show Card",
  "config": {
    "card": { "type": "AdaptiveCard", "version": "1.5", "body": [{ "type": "Input.Text", "id": "nickname", "label": "Nickname" }], "actions": [{ "type": "Action.Submit", "title": "Submit" }] },
    "waitForInput": true,
    "storeResultInContext": true,
    "contextKey": "result"
  }
}

showXAppHtml — xApp: Show HTML

Render custom HTML. All fields optional (mode defaults to body).

FieldTypeDescription
mode"body" | "full"body = HTML body only (Cognigy wraps it + injects the xApp SDK). full = full HTML document (you must include the SDK yourself)
bodystringHTML body (when mode: "body")
htmlstringFull HTML document (when mode: "full")
waitForInput / storeResultInContext / contextKeyboolean / boolean / stringSame waiting behavior as above
autoOpen, closeOnSubmit, feedbackMessage, screenTitle, sendEventOnCloseIconClick, showCloseIcon—Webchat v3 overlay settings

In HTML, return data to the flow via the injected SDK global: <button onclick="SDK.submit({ variant: 'a' })">A</button>, or submit the first <form>.

setXAppState — xApp: Set State

Render a Cognigy App Template by id. appTemplateId required.

FieldTypeRequiredDescription
appTemplateIdstringYesReference id of the App Template
appTemplateDataobjectNoData passed to the template (default {})

getXAppSessionPin — xApp: Get Session PIN

No config. Populates input.apps.session.pin and the PIN page URL into input.apps.baseUrl, so the user can open the xApp on another device via a PIN.

Accessing xApp data

  • Session URL — input.apps.url. Render it as a button so the user opens the xApp with a tap instead of a bare link — see "Rendering an Open-xApp button" below.
  • Session PIN — input.apps.session.pin (after getXAppSessionPin); PIN page at input.apps.baseUrl.
  • Submitted data — input.data._cognigy._app.payload. When the show node has waitForInput + storeResultInContext, it's also written to context.<contextKey> (default context.result).

Rendering an Open-xApp button

To give the user a tappable button into the xApp (instead of a plain link), add a say node with buttons after initAppSession — the button carries {{input.apps.url}}.

Use a web_url button, not an openXApp button. The dedicated "Open xApp" button type is unreliable in practice; a plain URL button pointing at {{input.apps.url}} renders as a button and opens the xApp as expected. Set the button title to something relevant to the app ("Open booking", "Pick your seats", "Upload document", …) — not a generic "Open".

manage_flow_nodes {
  operation: 'create',
  flowId,
  parentNodeId: '<initSessionNodeId>',
  mode: 'append',
  nodeType: 'say',
  label: 'Open xApp button',
  config: {
    text: 'Tap below to get started.',
    buttons: [
      { title: 'Pick your seats', type: 'web_url', url: '{{input.apps.url}}' }
    ]
  }
}

Button config keys: title (label), type: 'web_url', url: '{{input.apps.url}}'. Order this node after initAppSession so input.apps.url is populated by the time it runs.

Use-case templates

Ready-made starting points live in templates/ next to this file. For a matching request, read the template file, then pass its contents into the node config — HTML into config.body (with mode: "body") or config.html (with mode: "full" — all HTML templates here are full documents that include the SDK, so use mode: "full"); AdaptiveCard JSON into config.card. Adapt the file to the user's specifics before sending; treat it as a scaffold, not a fixed asset.

Use-caseTemplateNodeData in (context)Result payload
Signaturetemplates/signature.htmlshowXAppHtml (mode: "full")—{ signature: "<PNG dataURL>", signed: true }
Seat pickertemplates/seat-picker.htmlshowXAppHtml (mode: "full")context.seatMap = { rows, cols, unavailable[], maxSelect? }{ seats: ["R1C4", …] }
Document uploadtemplates/document-upload.htmlshowXAppHtml (mode: "full")context.uploadConfig = { accept?, maxFiles?, maxSizeMB? }{ files: [{ name, type, size, dataUrl }] }
Google Mapstemplates/google-maps.htmlshowXAppHtml (mode: "full")context.mapConfig = { center?, zoom? }{ lat, lng, address }
Appointment bookingtemplates/appointment-booking.card.jsonshowXAppAdaptiveCard— (inputs are user-entered){ appointmentDate, appointmentTime, service, notes, action: "book" }
Order summarytemplates/order-summary.card.jsonshowXAppAdaptiveCarditems rendered into the card (see note){ confirmed: true | false }

Every use-case follows the same chain: initAppSession → show node (waitForInput: true, storeResultInContext: true, contextKey) → code/say reading the result. Pass "data in" by setting the named context key before the show node (e.g. a setSessionContext or code node populating context.seatMap); the template reads it via CognigyScript.

Per-template notes:

  • Google Maps — replace __MAPS_API_KEY__ in the HTML with the user's Google Maps JS API key (needs Maps JavaScript API + Geocoding API; restrict by HTTP referrer). No key → the map won't load. Ask the user for the key.
  • Document upload — the template submits files as base64 dataUrls (payload grows ~33%; default cap 5 MB/file). For large files, don't submit base64: add an httpRequest tool to push each file to storage and submit only the returned URL.
  • Order summary — the card ships with one placeholder item row and $0.00 totals. Populate real rows before showing it: either build the card object in a code node from context.order and pass that as config.card, or interpolate values with CognigyScript. Adaptive Cards have no loop, so dynamic item lists must be assembled in code.
  • Signature / Seat picker — self-contained, no data-in required (seat picker falls back to a 5×8 grid if context.seatMap is unset).

Prerequisite

Rendering requires an xApp-capable endpoint (Cognigy App Session Manager / Webchat v3). Node creation succeeds regardless, but the xApp only renders end-to-end on a supported endpoint.

Συνοδευτικά αρχεία

Το μοντέλο τα διαβάζει όποτε χρειάζεται, όσο η δεξιότητα είναι φορτωμένη. Διατίθενται ως αρχεία για ανάγνωση και δεν εκτελούνται ποτέ.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Xapps;

Use when the user wants to add xApps to a Cognigy flow — interactive HTML / Adaptive Card mini-apps rendered to the user, with the submitted data flowing back into the conversation. Covers the xApp flow nodes, the Init Session rule, and accessing xApp data.

Γιατί να χρησιμοποιήσετε τη δεξιότητα Xapps στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Xapps είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη Xapps στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε το https://github.com/Cognigy/cognigy-plugin/tree/main/plugin/skills/xapps. Το TypingMind διαβάζει το αρχείο SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Xapps;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη Xapps;

Με όσα θέλετε. Εφόσον ένα μοντέλο υποστηρίζει δεξιότητες, μπορείτε να χρησιμοποιήσετε τη Xapps με αυτό — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama και άλλα — όλα στο TypingMind με τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Xapps;

Ναι. Δημοσιεύεται στο GitHub από τον χρήστη Cognigy με την άδεια χρήσης MIT. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων

Στήστε δικό σας χώρο εργασίας AI τώρα

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇