Directory / plugin
Scrapia Webchat Widget
v1.1.0 · by carlupi
Adds the Scrapia AI chat widget to your WordPress site. You only need the widget ID.
About this plugin
Scrapia Webchat Widget connects your WordPress site to your Scrapia assistant. The widget appears as a floating button. Colors, avatar, welcome message, and starter buttons are configured in the Scrapia dashboard, not in WordPress.
Features:
- Setup with a single field: the widget ID.
- The ID is checked when you save: you are told if the widget does not exist or is inactive.
- Place the widget at the bottom right (default) or bottom left of the screen.
- Hide the chat from site administrators.
- Exclude specific paths (for example checkout).
- Compatible with the most common caching plugins.
You need a Scrapia account with a Webchat widget configured.
External services
This plugin relies on an external service: the Scrapia API (https://api.scrapia.ai). The widget does not work without it.
What is sent, and when:
- When you save the settings in the WordPress dashboard, the plugin calls
GET /api/v1/webchat/demo/{widget_id}to confirm that the widget exists. Only the widget ID is sent. - On the front end, the plugin loads
embed.jsfrom the API. That script runs in the visitor’s browser and, when the visitor sends a message, sends the message text, an anonymous visitor identifier, and the widget ID to the API. It also loads the history of that conversation. - The script stores an anonymous visitor identifier in the browser’s
localStorage, so the conversation continues across pages. - The plugin does not send WordPress account data or the content of the site.
Terms of service: https://scrapia.ai/cl/terminos/
Privacy policy: https://scrapia.ai/cl/politica/
If your site requires consent before cookies or local storage, keep the widget hidden until the visitor accepts by using the scrapia_chat_should_render filter.