Skip to content

Widget Configuration

This page documents all available attributes for the Petameta Web Widget.

Script Tag

html
<script
  src="https://cdn.petameta.com/widget-rules-based-v1.js?v=4.0.0"
  data-endpoint="https://api.petameta.com/api/v1/chat"
  data-api-key="YOUR_SITE_API_KEY"
  data-brand="YourBrand"
  data-primary="#0AB399"
  data-logo="https://example.com/logo.png"
  data-position="right"
  data-greeting="Hi! I’m your assistant."
  defer></script>

Attribute Table

AttributeDescriptionRequiredExample
data-endpointChat API endpointYeshttps://api.petameta.com/api/v1/chat
data-api-keyAPI keyYesCB_xxxx
data-brandDisplay nameNoCashBridge
data-primaryTheme colorNo#0AB399
data-logoLogo URLNohttps://cashbridge.com.au/logo.png
data-greetingFirst messageNoHi! Need help?
data-positionright / leftNoright

Custom Greeting Examples

html
data-greeting="Welcome to ABC Finance — how can I assist you?"

Notes

  • Widget loads asynchronously
  • No JS framework required
  • Works on any HTML site, WordPress, Vue, React, etc.