For the complete documentation index, see llms.txt. This page is also available as Markdown.

Razorpay - Create Payment Link

The Create Payment Link action allows chatbot builders to generate secure payment links using Razorpay integration directly inside Ownchat workflows.

This connection action helps businesses automate payment collection by dynamically creating payment URLs based on order details, customer information, or API responses.

The walkthrough demonstrates configuring Razorpay connections, setting payment amounts and currency, adding order notes, storing payment responses, and publishing the workflow.

Use the Create Payment Link action when your chatbot needs to generate payment links for customer transactions.

Common Use Cases

  • Order payment collection

  • Booking confirmation payments

  • Subscription payments

  • Invoice payments

  • Advance payment requests

  • E-commerce checkout workflows

Example Interaction

Bot: 💳 Please complete your payment using the secure payment link below.

The chatbot dynamically creates a Razorpay payment link and sends it to the customer.

Prerequisites

Before configuring the Create Payment Link action:

  • Razorpay integration must already be connected in Ownchat.

  • Order or customer data should be available through variables or API responses.

The walkthrough specifically mentions:

To create a payment link in Razorpay, you need to connect the app first and proceed.

Follow these steps to add the Create Payment Link action to your bot workflow.

  1. Open Bot Builder

  2. Click the Add Node button

  3. Open the Connections tab

  4. Select Razorpay

  5. Click Create Payment Link

  6. Configure the payment settings

  7. Configure response variables

  8. Click "Create."

  9. Click Publish to deploy the workflow

The walkthrough demonstrates selecting the Create Payment Link action from the Razorpay integration menu.

Accessing the Connections Section

To access the Create Payment Link action:

  1. Click Add Node

  2. Open the action selection panel

  3. Click the Connections tab

  1. Select Razorpay

The walkthrough demonstrates opening the Razorpay integration options from the Connections tab.

Inside the Razorpay dropdown:

  1. Locate Create Payment Link

  1. Click the action to open the configuration panel

The walkthrough specifically notes:

The Create Payment Link action is available to create the payment link.

When configuring the Create Payment Link action, several fields must be completed.

Action Name

The Action Name identifies the payment workflow inside the bot builder.

This name is visible only within the workflow editor.

Example

Create Premium Plan Payment Generate Booking Payment Link Order Payment Request

The walkthrough demonstrates renaming the default value to:

Payment link

before saving the configuration.

Select Connection

The Select Connection field allows you to choose the Razorpay account integration.

To configure:

  1. Open the Select Connection dropdown

  1. Choose the connected Razorpay account

The walkthrough specifically selects:

Ownchat Account

from the available Razorpay connections.

Amount

The Amount field defines the payment amount for the generated payment link.

Example

10000

The walkthrough demonstrates entering the payment amount manually.

You can also insert variables dynamically using the Add Variable option.

Currency

The Currency field specifies the currency used for the payment request.

Available options shown in the walkthrough include:

  • Indian Rupee (INR)

  • US Dollar (USD)

The walkthrough specifically selects:

Indian Rupee

as the payment currency.

Advanced Options

The Advanced Options toggle allows additional payment configuration settings.

When enabled, additional fields become available such as:

  • Reference ID

  • Description

  • Additional Notes

The walkthrough specifically notes:

You can enable the advanced options if needed; otherwise, you can disable them.

Reference ID

The Reference ID field allows a unique identifier to be attached to the payment request.

Example

ORDER_1001

This helps track payments and associate them with specific orders.

Description

The Description field contains additional payment details or transaction information.

Example

Payment for customer order confirmation

This description may appear inside the payment request details.

Additional Notes

The Additional Notes section allows metadata to be attached to the payment request.

This is commonly used for:

  • Order IDs

  • Customer references

  • Internal tracking details

Note Key

The Note Key field defines the metadata label.

Example

Order Id

The walkthrough specifically demonstrates using Order Id as the note key.

Note Value

The Note Value field defines the value associated with the note key.

The walkthrough demonstrates:

  1. Clicking Add Variable

  2. Selecting the variable:

id

which was previously stored using an API action.

The walkthrough then appends:

.data

to access the required value from the API response structure.

Final example:

{{variables.id.data}}

Store Response in the Variable

The Store Response in the Variable field defines where the payment response should be saved.

To configure:

  1. Select an existing variable or

  2. Create a new variable

The walkthrough demonstrates creating:

payment_create

as the response storage variable.

Creating a New Variable

If the variable does not exist:

  1. Click Create New Variable

  2. Enter the variable name

  3. Save the variable configuration

Example

payment_create

The walkthrough demonstrates creating the payment response variable before finalizing the workflow.

Creating the Create Payment Link Action

After configuring all payment settings:

  1. Review the connection and payment details

  2. Click the Create button

The Create Payment Link node will now appear in the workflow canvas.

Workflow Behavior

Once triggered, the Create Payment Link action:

  • Connects with Razorpay

  • Generates secure payment links dynamically

  • Supports variable-based order references

  • Stores payment response data

  • Automates payment collection workflows

The walkthrough demonstrates generating a Razorpay payment link using API-generated order IDs.

Example Workflow

Example Chatbot Workflow

Create Order via API ↓ Generate Razorpay Payment Link ↓ Store Payment Response ↓ Send Payment Link to Customer

Example Interaction

Bot: 💳 Your payment link is ready. Amount: ₹10,000 Click below to complete payment securely.

The chatbot dynamically creates and shares the Razorpay payment link with the customer.

Publishing the Bot Changes

After configuring the Create Payment Link workflow:

  1. Review all payment settings

  2. Click the Publish button

  3. Deploy the updated workflow to production

The walkthrough concludes by publishing the configured payment workflow successfully.

Best Practices

Follow these recommendations when using Create Payment Link.

Connect Razorpay before configuration

Ensure the Razorpay integration is properly authorized.

Use dynamic order references

Store order IDs from API responses for accurate payment tracking.

Use proper currencies

Select the correct currency for customer transactions.

Store payment responses safely

Save payment response data in variables for future workflows.

Test payment workflows before publishing

Verify that payment links are generated successfully.

Summary

The Create Payment Link action allows chatbot builders to generate secure Razorpay payment links dynamically inside chatbot workflows.

With Create Payment Link, you can:

  • Generate payment links automatically

  • Connect chatbot workflows with Razorpay

  • Use dynamic order IDs and variables

  • Store payment response data

  • Automate customer payment collection workflows

This connection action helps businesses create seamless payment automation and integrated transaction workflows within Ownchat

Last updated