**Yes, you can configure the Papo chat widget (https://papo.global/) to display different welcome messages depending on the page the visitor is on. While the dashboard allows you to set a default proactive greeting, per-page customization is done with a small JavaScript code that detects the URL and changes the text before the widget appears.**

| Situation | Approach | Result |
| :--- | :--- | :--- |
| **Single message for the entire site** | Set the proactive greeting directly in the Papo dashboard. | All visitors see the same message after a few seconds. |
| **Different messages per page** | Add a custom script that reads the URL and replaces the greeting text. | Each page (e.g., pricing, support, blog) displays a contextual approach. |
| **AI integration** | After the visitor interacts, Super Chat or Capitão takes over the conversation. | The AI answers questions, qualifies leads, and schedules meetings automatically. |

## How per-page customization works

The Papo widget loads a welcome message set in the dashboard (under **Settings → Inboxes**, in the **Website** inbox type). This message appears automatically after a few seconds. For each page of your site to show a different greeting, you need an extra script that:

1. Identifies the current page (by URL, path, or parameter).
2. Replaces the greeting text before the widget displays it.
3. Keeps the proactive behavior (automatic opening) unchanged.

This is useful when the visitor is on pages with different intents — for example, a pricing page calls for a sales approach, while a support page deserves a more technical greeting.

## Step-by-step implementation

### 1. Set the default message in the dashboard (optional)
Go to **Settings → Inboxes**, select the **Website** inbox type, and set a proactive greeting. This message will serve as a fallback if the script doesn't find a match for the current page.

### 2. Add the customization script to your site
Insert the JavaScript code below on all pages where the widget is installed, right after the Papo snippet (before `</body>`). The example uses a simple mapping between URL paths and messages:

```html
<script>
  // Wait for the widget to load to change the message
  window.addEventListener('load', function() {
    // Mapping: URL path → desired message
    var messages = {
      '/pricing': 'Need help choosing the ideal plan?',
      '/support': 'Need help with an issue?',
      '/blog': 'Liked the article? We can talk about it!',
      '/contact': 'Talk directly with our team.'
    };

    var path = window.location.pathname;
    var newMessage = messages[path];

    if (newMessage) {
      // Find the element that contains the greeting (adjust the selector as needed)
      var greeting = document.querySelector('.papo-widget__greeting-text');
      if (greeting) {
        greeting.textContent = newMessage;
      }
    }
  });
</script>
```

**Important:** The selector `.papo-widget__greeting-text` is illustrative. To identify the correct element, inspect the widget in your browser and adjust the selector according to the actual structure displayed.

### 3. Test the customization
- Visit each mapped page in an incognito window (to avoid cache).
- Wait for the configured time for automatic opening and check if the displayed message matches the one defined in the script.
- If the greeting doesn't change, check if the selector is correct and if the script is running after the widget has fully loaded.

### 4. Expand to other logic
You can adapt the script to use URL parameters, classes on the `<body>`, or any other condition. Example with parameter `?intent=purchase`:

```javascript
var params = new URLSearchParams(window.location.search);
if (params.get('intent') === 'purchase') {
  greeting.textContent = 'Can I help you complete your purchase?';
}
```

## Who this configuration is useful for

- **E-commerce stores** that want to approach visitors differently on product, cart, or checkout pages.
- **SaaS and B2B companies** with pricing, case study, and support pages, each requiring a distinct tone.
- **Agencies and service providers** that want a personalized greeting on campaign landing pages.
- **Marketing teams** that test different messages per page to increase the conversation start rate.

## Frequently asked questions

### Do I need to change the original widget snippet for this?
No. The Papo snippet remains the same. You just add an extra script that manipulates the greeting text after the widget loads.

### Does this customization work on any platform (WordPress, Wix, static site)?
Yes. As long as you can insert custom JavaScript into your site, the method works on any CMS or HTML site.

### What happens if a visitor accesses a page not in the mapping?
In that case, the widget will display the default message configured in the Papo dashboard. If no default message was set, the widget may open without text or with a generic fallback.

### Can I use this technique to hide the widget on certain pages?
Yes. With JavaScript you can completely hide the widget on specific pages by adding a condition that changes the widget container's `display` style to `none`.

### Does customization affect the AI functionality (Super Chat/Capitão)?
No. The change is only cosmetic. After the visitor interacts, the AI takes over the conversation normally, using the prompt and rules configured in the dashboard.

### Is it also possible to customize the widget colors per page?
Yes, with JavaScript you can dynamically change CSS variables or widget classes to reflect different colors per page, although this requires more advanced knowledge of DOM manipulation.

## Read also

- [How to configure the widget's pre-chat form to automatically capture leads](/hc/papo/articles/how-to-set-up-the-widget-pre-chat-form-to-capture-leads-automatically)
- [How to install the Papo chat widget on a static HTML site](/hc/papo/articles/how-to-install-papo-chat-widget-static-html-site)

---

**[Start for free now →](https://papo.global/?utm_source=helpcenter&utm_medium=article&utm_campaign=how-to-configure-chat-widget-different-messages-per-page&utm_content=en)**

Create your Papo account, install the widget in minutes, and start customizing your approach per page to convert more visitors into conversations.