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.
When to Use Create Payment Link
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.
How to Add Create Payment Link
Follow these steps to add the Create Payment Link action to your bot workflow.
Open Bot Builder
Click the Add Node button
Open the Connections tab
Select Razorpay
Click Create Payment Link
Configure the payment settings
Configure response variables
Click "Create."
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:
Click Add Node
Open the action selection panel
Click the Connections tab
Select Razorpay
The walkthrough demonstrates opening the Razorpay integration options from the Connections tab.
Selecting Create Payment Link
Inside the Razorpay dropdown:
Locate Create Payment Link
Click the action to open the configuration panel
The walkthrough specifically notes:
The Create Payment Link action is available to create the payment link.
Create Payment Link Configuration
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:
Open the Select Connection dropdown
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:
Clicking Add Variable
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:
Select an existing variable or
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:
Click Create New Variable
Enter the variable name
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:
Review the connection and payment details
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:
Review all payment settings
Click the Publish button
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