ruLog in to Senler

Create payment link

This step creates an order for one configured item and saves its payment link. Add a separate message step to send the link to the customer.

Add the step

Open your project → Automations → the intended For dialogs automation. Click Add step and select GetCourse → Create payment link. Find the step catalog.

Selecting Create payment link

Select the new step and click Open step settings in the right panel.

Payment step configuration and save buttons

Configure the purchase

In Customer email or variable, enter the customer’s email variable, such as {{lead.email}}. Make sure it has a value before the step runs. Phone is optional.

Select the GetCourse account and complete one item: an existing numeric GetCourse offer ID, name, price in rubles, quantity and optional description. The example is one consultation priced at 5,000 ₽. Use your own values.

Payment account and step inputs

Configuring the product or service

In Step result, keep the suggested variable names or enter your own:

Result Purpose
order_id Order ID for checking and waiting for payment.
payment_url The link to send to the customer.
status Status after creating the link.
amount_kopecks Total in kopecks: 500,000 for a 5,000 ₽ purchase.
item_code Offer ID.
getcourse_user_id GetCourse user ID for subsequent steps.
getcourse_school The school the user belongs to.

Payment step result variables

Save using the Senler button below the embedded app. After editing the step, click Save in the step panel.

After creating an order, the plugin saves the user ID in a lead variable. For senler.getcourse.ru, this is getcourse_user_id_senler. Use it in later automations and agent tools. Repeat orders keep the same link; each school has its own variable. If the school returns a different user, the step reports a conflict and keeps the existing link. Check the customer's email.

For an existing installation, reconnect Senler in the plugin settings and grant access to lead variables.

  1. Use Add step to add Message and connect it to the create-link output.
  2. Enter Consultation payment link: {{run.payment_url}} in the message. If you renamed the variable, use its new name. Configure a message step.
  3. After the message, add Wait for payment with {{run.order_id}} to continue after payment. For an immediate check, use Check payment.

Creating and sending a link, then waiting for payment

A saved link means the customer can proceed to checkout. Connect delivery of the paid result to the confirmed-payment branch. Testing and publishing the workflow.