Integrate Pravia in Minutes

Choose the method that works for your stack — CMS plugin, JS snippet, React SDK, or REST API.

WordPressShopifyWebflowWixSquarespaceReactVueAngular

Quick Start — One Line of Code

html
<script src="https://pravia.dev/loader.js" data-bot-id="YOUR_BOT_ID"></script>
Step 01

Copy the Code

Copy the script tag from your bot dashboard.

Step 02

Paste on Your Site

Paste it just before the closing </body> tag on your website.

Step 03

Go Live

The widget appears automatically. Your bot starts answering questions immediately.

Platform Guides

WordPress

Custom HTMLIntermediate

Add a 'Custom HTML' widget in Appearance → Widgets and paste the widget code, or insert it directly in your theme's footer.php before </body>.

Shopify

ThemeBeginner

Add the widget snippet to your Shopify theme's layout file. Works with all Shopify store themes.

Webflow

EmbedIntermediate

Add the code snippet using Webflow's embed element. Place it in the footer or globally via site settings.

Wix

EmbedIntermediate

Use the HTML embed component in Wix or add the snippet via the site tracking tools in settings.

Developer Integration

JS

Vanilla JS

Add the widget to any page with a single script tag. No initialization code needed.

html
<script src="/loader.js" data-bot-id="YOUR_BOT_ID"></script>
Learn More

React

Embed the widget in a React app using a script tag in a useEffect hook or the HTML script approach.

tsx
import { useEffect } from "react";

function ChatWidget({ botId }) {
  useEffect(() => {
    const script = document.createElement("script");
    script.src = "/loader.js";
    script.setAttribute("data-bot-id", botId);
    document.body.appendChild(script);
  }, [botId]);

  return null;
}
Learn More

postMessage API

Use the postMessage API to control the widget from your own JavaScript — open, close, and listen to events.

javascript
const iframe = document.querySelector("iframe");
iframe.contentWindow.postMessage({
  type: "open",
}, "*");
Learn More

REST API

Build a custom chat interface using the Pravia REST API. Full control over the chat experience.

bash
POST /api/chat
{
  "botId": "YOUR_BOT_ID",
  "query": "Hello!"
}
Learn More

Common Use Cases

01

Customer Support

Deploy an AI employee that answers product questions, troubleshooting steps, and policy inquiries based on your knowledge sources.

RAGFAQ
02

Internal Knowledge Base

Give your team an AI assistant powered by internal knowledge — HR policies, IT guides, and process documentation.

HRITDocs
03

E-commerce Help

Help shoppers find product information, check order status, and get shipping details without leaving your store.

ShopifyAPI

Integration FAQ

The widget loads asynchronously and is tree-shaken to minimal size (~15KB gzipped). It has zero impact on Core Web Vitals.

Start Building in Minutes