The Five Ways
Build From Your Assistant or Terminal
Connect an MCP client tohttps://mcp.widgetic.com and describe the widget in plain words. The assistant builds it, shows a preview, publishes it and gives you the embed code. Connect an assistant has the steps for ChatGPT, Codex, Cursor, Claude Code, VS Code and any other client, and AI agents (MCP) says what you can ask for. The CLI makes any call of the API from a terminal or a script.
Embed Code
A widget is shown on a page through a composition, and the page needs only the composition id: there is no key in the page. This is the code that every example below uses. Put your own composition id in it:If you limit the websites that may show your widgets, add every address that will show one, including preview and staging addresses. A page on an address that is not on the list shows nothing. See Security.
Where to Put It
Paste the embed code wherever the platform lets you add custom HTML.WordPress
- Add a “Custom HTML” block
- Paste the embed code
- Update the page
Webflow
- Add an Embed element
- Paste the embed code
- Publish your site
Shopify
- Open the theme editor and add a “Custom Liquid” section where the widget should go
- Paste the embed code
- Save the theme
Places That Take an Address, Not a Script
A chat messenger, a link page, a site builder or a notes tool often takes an address or an iframe and no script. A composition has a frame for that (see Use iframe), and so does a workflow:https://api.widgetic.com/embed/workflows/YOUR_WORKFLOW_ID/frame. See Show a workflow where you cannot add a tag for the frame, for the oEmbed card, and for what a workflow cannot do inside a frame: it moves a visitor on only by what the frame can see itself, so a step that waits for an event from your page does not start there.
Keep Content in Sync
The embed shows what its composition holds, so a widget stays current when the new content is saved to the composition. Do that from your server, or from any job that can send an HTTPS request, whenever the source changes: a product catalogue, a price list, a sheet, a list of scores. The tag on the page stays the same and every page that embeds the composition shows the change. See Compositions for how to save content, and Scripts and CI for running it from a scheduled job.- Product configurators. Save your product data to the composition whenever your catalogue changes.
- Pricing calculators. Save your plans and prices to the composition, and every page that embeds it shows them.
This page does not document a way for the
<widgetic> tag to hand a visitor’s choice back to your page, for example to add a configured product to a cart. Build that step on your own page, around the embed.React to What Visitors Send
Some widgets collect something from the people who use them: votes, ratings, answers, sign-ups. These are the entries of a composition. To get them to the tools where your team follows up, a CRM, a help desk or a spreadsheet, your server can read them when it likes (Read What Visitors Sent), or be told when one arrives, and pass it on. Widgetic can call your server in two ways, and both are signed in the same way (see Verify signatures):- Partner webhooks. A partner account can have a signed call made to its own server when an invoice is paid, when its credits run low, when a customer’s composition is created or saved, when a visitor sends an entry, and for the other events. See Partner webhooks for how to set the address.
- MCP events. Any workspace on a plan with API access can be called when a visitor sends an entry into one of its published widgets. See MCP events.