> ## Documentation Index
> Fetch the complete documentation index at: https://sitespeak.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Polar Subscription & Checkout Actions

> Enable your AI agent to look up subscription information, generate invoices, and use checkout links from Polar.

The Polar actions allow your AI agent to look up subscription information, generate invoices, and provide checkout links for your products and services.

## Available Polar Actions

* **Polar: Get Checkout Link** - Retrieve a checkout link for a product or service
* **Polar: Get Customer Subscription** - Get information about a customer's subscription like payment date or a link to a receipt or invoice

<Frame>
  <img src="https://mintcdn.com/espressodev/vmo2_L-Du_T9y0Is/images/tools-and-actions/polar-actions.png?fit=max&auto=format&n=vmo2_L-Du_T9y0Is&q=85&s=8d8143028eab86f1da73472ce0b03e3d" alt="Polar actions" width="3434" height="1914" data-path="images/tools-and-actions/polar-actions.png" />
</Frame>

***

## Adding a Polar Action

<Steps>
  <Step title="Go to Tools & Actions">
    In your chatbot dashboard, go to **Configuration → Tools & Actions**.
  </Step>

  <Step title="Select a Polar action">
    Find **Polar: Get Checkout Link** or **Polar: Get Customer Subscription** and click **Add**.
  </Step>
</Steps>

***

## Configuration

Both Polar actions require the same configuration:

<Frame>
  <img src="https://mintcdn.com/espressodev/vmo2_L-Du_T9y0Is/images/tools-and-actions/polar-config.png?fit=max&auto=format&n=vmo2_L-Du_T9y0Is&q=85&s=ad9634bb196b2afb1ef33d6a8298a17c" alt="Polar action configuration" width="3434" height="1914" data-path="images/tools-and-actions/polar-config.png" />
</Frame>

### Name

A descriptive name for the action. Default values are provided:

* `get_polar_checkout_link` for checkout links
* `get_polar_customer_subscription_invoice` for subscriptions

### Description

A description of the action and when it should be used. You can customize this or use the provided default.

**Example for checkout:**

> Use this action when the user wants to get a checkout link for a product or service. Use the product or service name supplied by the user to retrieve the checkout link to share with the user.

**Example for subscriptions:**

> Use this action when the user wants to get information about their subscription like the payment date or a link to a receipt or invoice. Use the subscription id supplied by the user to retrieve the information as well as the from and to date.

### Access Token (required)

Your Polar API access token.

***

## Creating a Polar Access Token

<Steps>
  <Step title="Go to Polar Dashboard">
    Log in to your [Polar account](https://polar.sh).
  </Step>

  <Step title="Open Settings">
    Go to **Settings → General → Developers**.
  </Step>

  <Step title="Create a new token">
    Click to create a new access token.
  </Step>

  <Step title="Enable permissions">
    Make sure to enable the following permissions:

    * `checkout_links:read`
    * `checkouts:read`
    * `subscriptions:read`
    * `subscriptions:write`
    * `customers:read`
    * `orders:read`
  </Step>

  <Step title="Copy the token">
    Copy the generated token and paste it into the **Access Token** field in SiteSpeakAI.
  </Step>
</Steps>

***

## Save the Action

Once you have added your access token, click **Add Action** to enable the action for your chatbot.

Your chatbot will now be able to look up subscription information and provide checkout links to your visitors.

***

## Providing Customer Information

To look up subscription information for a specific customer, use the [Identify functionality](/managing-your-chatbot/deploy-and-install) to provide the customer ID to your agent.

***

<Card title="Ready to automate your customer service with AI?" icon="bot" href="https://sitespeak.ai/register?utm_source=docs&utm_medium=cta&utm_campaign=primary-cta" arrow="true" cta="Create Your AI Agent">
  Join over 1000+ businesses, websites and startups automating their customer service and other tasks with a custom trained AI agent.
</Card>
