Chat Widget

AI-powered support that learns from your documentation to answer customer questions 24/7.

RAG Powered

Uses Retrieval-Augmented Generation to ensure answers are based strictly on your uploaded documents.

Instant Setup

Just upload your PDF or text docs, and the agent is ready to help your users immediately.

Integration

To add the chat widget to your site, use the standard embed script with data-type="chat".

<script 
  src="https://panwidget.com/embed.js" 
  data-project-id="YOUR_PROJECT_ID"
  data-type="chat"
  async
></script>

Configuration

You can customize the chat agent's behavior in the Chat Agent section of your dashboard:

  • System Prompt: Define the personality and rules for your AI agent.
  • Welcome Message: The first message users see when they open the chat.
  • Knowledge Base: Upload PDFs, text files, or paste URLs to train your agent.
  • Theme Color: Matches your brand automatically, but can be overridden.

Programmatic Control

Open the chat window programmatically using our global API:

// Open the chat widget
window.PanWidget.open('chat');

// Close the chat widget
window.PanWidget.close();