The ProseCaptain assistant answers your site’s visitors from what it knows about your company. To add it, you paste one script. It works on any site: WordPress, Webflow, Shopify, your own code.

1. Copy the code

Paste this code once, before the </body> tag, on every page where the assistant should work:

<script
  src="https://widget-api.prosecaptain.com/embed.js"
  data-widget-token="YOUR_TOKEN"
  data-widget-id="WIDGET_ID"
></script>

The ready code with your token is in the app: AI Agent → your widget → Installation → Embed code → Copy to clipboard. More about the token: Where to get the token.

2. Check it works

Reload the page. A Start a conversation button appears in the bottom right corner. Click it and ask about your offer: the assistant answers from the knowledge you added in the app.

No button? Check that the widget is published in the app and that the script is on the page (look for embed.js in the page source).

WordPress: no code to paste

On WordPress, install the ProseCaptain plugin and turn on the chat in Agent → Assistant → Chat bubble. Add the FAQ block and the Ask AI button as blocks in the editor or with shortcodes. Details: Widgets in WordPress.

Next

  • FAQ block: suggested questions in the page content.
  • Ask AI button: a ready button that opens the chat.
  • Your own button or link in your site’s style: any element can open the chat with the prosecaptain-open-chat event, or with a pc-ask-question attribute that sends a ready question. See JavaScript API.
  • AI settings and assistant language.