Skip to main content

Overview

The Polar integration enables your AI chatbot to answer subscription-related questions by connecting to your Polar.sh organization. Customers can check their subscription status, view order history, access benefits, and manage their subscriptions through natural conversation.

Features

ToolDescription
Get Subscription StatusCheck current plan, billing cycle, and next payment date
Get Order HistoryView past orders and invoices
Get Customer Portal LinkGenerate secure self-service portal links
Get BenefitsShow granted benefits like downloads, Discord access, license keys
Get ProductsList available products and pricing
Manage SubscriptionProvide secure portal link for customer self-service management
Visitor InsightsReal-time subscription and benefit data for support agents

Visitor Insights for Support Agents

The Polar integration provides support agents with real-time data in the Visitor Insight panel within the BubblaV dashboard. This allows agents to:
Polar Visitor Insight
  • Identify Plan Tier: Instantly see if the customer has an active Pro or other subscription tier.
  • Check Subscription Status: See the current status (Active, Canceled, etc.) and next billing period.
  • View Order History: Access a quick history of recent Polar orders and payments.
  • Manage Benefits: See which specific benefits (downloads, Discord access, license keys) the customer has active.
By having this information at their fingertips, agents can provide faster, more personalized support without needing to switch into the Polar dashboard.

Setup

Step 1: Get Your Polar Organization Access Token

  1. Log in to Polar.sh
  2. Go to SettingsGeneralDevelopers
  3. Click New Token
  4. Give your token a name (e.g., “BubblaV Chatbot”)
  5. Select the following scopes:
ScopePermissionRequired For
customers:readReadLooking up customers by email
subscriptions:readReadChecking subscription status
orders:readReadViewing order history
products:readReadListing available products
benefits:readReadShowing granted benefits
customer_sessions:writeWriteGenerating customer portal links for self-service management
  1. Click Create and copy the token (starts with polar_)

Step 2: Connect in BubblaV

  1. Go to your BubblaV dashboard
  2. Navigate to Integrations
  3. Click Connect on the Polar card
  4. Paste your API key
  5. Enable Test Mode if using sandbox credentials
  6. Click Save

Customer Identification

Customers are identified by their email address. When a customer asks a subscription question, the chatbot:
  1. Verifies the customer’s email
  2. Looks up the matching customer record in Polar
  3. Returns subscription and billing information
Only verified customers can access subscription information. The chatbot will not provide data without email verification.

Available Tools

Get Subscription Status

Returns the customer’s current subscription plan, status, and next billing date.
Polar Live Chat
Example conversation:
  • Customer: “What’s my subscription status?”
  • AI: “You have an active Pro subscription at $19/month. Your next billing date is January 15, 2025.”

Get Order History

Retrieves recent orders including subscription payments and one-time purchases. Example conversation:
  • Customer: “Show me my recent orders”
  • AI: “Here are your last 5 orders: Renewal - 19.00(Dec15),Renewal19.00 (Dec 15), Renewal - 19.00 (Nov 15)…”
Generates a secure link to the Polar customer portal for self-service management. Example conversation:
  • Customer: “I want to update my payment method”
  • AI: “Here’s your customer portal link: [link]. You can update your payment method and manage your subscription there.”

Get Benefits

Lists all benefits granted to the customer, including downloads, Discord access, and license keys. Example conversation:
  • Customer: “What benefits do I have?”
  • AI: “You have 3 active benefits: Discord Access, Premium Templates (Download), License Key: PRO-XXXX”

Get Products

Lists all available products and their pricing. Example conversation:
  • Customer: “What plans are available?”
  • AI: “We offer: Starter at 9/month,Proat9/month, Pro at 19/month, Enterprise at $49/month”

Manage Subscription

Provides a secure customer portal link for self-service subscription management. Customers can cancel, change their plan, or update payment methods through the portal. Example conversation:
  • Customer: “I want to cancel my subscription”
  • AI: “Here’s your secure customer portal where you can manage your subscription: [link]. You have full control over cancellations and plan changes there.”

Security

  • Read-only by default: Most operations are read-only
  • Email verification: Customers must verify their email before accessing data
  • Encrypted credentials: API keys are encrypted at rest
  • No sensitive data exposure: Card numbers and payment details are never shown

Sandbox Mode

Enable Test Mode when connecting to use Polar’s sandbox environment. This is useful for:
  • Testing the integration before going live
  • Development and staging environments

FAQ

Customers are verified by their email address. The chatbot looks up the email in your Polar organization’s customer list.
The chatbot provides a secure portal link where customers can manage their own subscriptions, including cancellations. This gives customers full control and transparency over their account changes.
If no customer record is found, the chatbot will inform them that no subscription was found for their email.
Yes, API keys are encrypted at rest and never exposed in logs or error messages.

Troubleshooting

”No customer found”

This means the email address doesn’t match any customer in your Polar organization. Verify the customer is using the same email they signed up with.

”Invalid API key”

Check that:
  1. Your API key starts with polar_
  2. You’re using the correct environment (production vs sandbox)
  3. The token has the required scopes

”Unable to retrieve data”

This could indicate:
  • Network connectivity issues
  • Polar API rate limiting
  • Missing API permissions
Check the Polar API status and verify your token scopes. This error occurs when your API key doesn’t have the required scope for creating customer sessions. To fix:
  1. Go to Polar.sh → Settings → General → Developers
  2. Create a new token (don’t edit the existing one) with one of these scopes enabled:
    • customer_sessions:write (most common)
    • customer_portal:write (alternative name in some accounts)
  3. Copy the new token and update the integration in BubblaV