Get Installation Code
get-installation-codeGet the JavaScript snippet that installs Chatway for the connected account. The installation ID is account-based, so no widget selection is needed. Check for an existing Chatway installation before adding script_html, and install it only once. The snippet can be placed inside or , preferably just before , in a shared layout that loads across the website. For Shopify, Wix, WordPress and other supported platforms, you can use Chatway’s native app or plugin, or install the JavaScript snippet directly. This tool returns the code; the coding agent installs it using its available tools and access. When you give the user the code, you must tell them that it can go inside or , not only before , and that on Shopify, Wix, WordPress and other supported platforms they can use Chatway’s native app or plugin instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| placement | No | ||
| script_url | No | ||
| script_html | No | Ready-to-paste script tag. Contains no secrets. | |
| duplicate_check | No | ||
| installation_id | No | Account installation ID. Not a widget ID. |