Skip to main content

Overview

You can open the chat with a prefilled message by adding URL parameters to any page on your website. This is perfect for:
  • Marketing campaigns with pre-written questions
  • Email links that open chat with context
  • QR codes that start specific conversations
  • Social media links with call-to-action messages
  • Support links with predefined inquiries
This feature requires no JavaScript code. Just add parameters to your existing URLs.

URL builder

Use this tool to generate URLs for your campaigns:

Parameters

URL encoding

Special characters must be URL-encoded. Common encodings:
The URL builder above handles encoding automatically. For manual encoding, use JavaScript’s encodeURIComponent() function.

Examples

Product inquiry

Direct users to ask about a specific product:

Support request

Create a support link in your email footer:

Campaign landing page

Add to marketing campaigns with a specific question:

Order tracking

Link from order confirmation emails:

Use cases

Email marketing

Add prefilled chat links to your email campaigns:

QR codes

Generate QR codes that link to URLs with prefilled messages. When scanned, customers immediately start a relevant conversation.

Social media ads

Use prefilled URLs in your ad campaigns to start targeted conversations:
  • Facebook ads → product-specific questions
  • Instagram bio → general inquiries
  • Twitter links → support requests

Website buttons

Create buttons that open chat with context:
For more control over chat behavior, see Send message programmatically for the JavaScript API.

Combining with existing URLs

The parameters work with any existing URL on your site:

Technical notes

  • Parameters are parsed when the widget script loads
  • The chat opens automatically when a valid molin_message is detected
  • After the chat opens, molin_* parameters are automatically removed from the URL (using history.replaceState) to keep URLs clean
  • Works with all widget embed methods (script tag, Shopify app, etc.)