ruLog in to Senler

Start on a stage change

Configure an automation that starts after a deal stage changes in amoCRM. For example, it can send a customer a message when a deal reaches Order ready.

You need an amoCRM account connection, a For dialogs workflow, and a deal linked to the customer's Senler conversation. For testing, use a deal that an agent created or retrieved in that conversation.

1. Add the event

In the required project, open Automations (1) and the workflow (2). For a new workflow, click Add, choose For dialogs, enter a name, and click Create. On a phone, open the side menu first.

Opening an automation: 1 — the section; 2 — the required workflow

Click Add step (1).

Adding a trigger: 1 — Add step

Find amoCRM in the catalog and choose Deal stage changed (1). This starts the workflow, so no preceding block needs to connect to it.

amoCRM event: 1 — Deal stage changed

2. Save event data

In the event variable field (1), enter a name such as amocrm_event, then click Save at the bottom of the panel.

Event settings: 1 — the variable name for its data

Inside the process, this variable contains the deal ID and its previous and new stages. The condition below uses new_status_id, the new stage's ID.

3. Select the required stage

Use Add step to add Variable condition and connect it to the event output.

  1. In Variable (1), click the pencil, enter run.amocrm_event.new_status_id, and confirm with Enter or the check mark.
  2. Select Number (2) and Equals (3).
  3. In Value (4), enter the required stage's numeric ID from your account. The screenshot uses 200010 as a demonstration number; replace it.

Stage condition: 1 — event field; 2 — type; 3 — operator; 4 — stage ID

You can retrieve stage IDs with Get amoCRM configuration. If stage names repeat, check the required pipeline and exact ID. More about variable conditions.

4. Add an action

Choose Message through Add step. Enter the text (1), for example, “Your order is ready. A manager will contact you to confirm the details”, and click Save.

Customer message: 1 — the text after the required event

Connect the condition's Yes output to the message. For No, add another continuation or end that path if other stages need no response.

5. Publish and verify

Click Publish (2) and confirm. If the automation is disabled, open its status button and choose Enable.

Testing and publication: 1 — Testing; 2 — Publish

Change the stage of an agreed test deal in amoCRM. Check that a process starts in the right conversation and takes the expected path. Testing can check the workflow continuation separately; it does not replace checking a real CRM event.

If the agent also handles this event, divide their actions so the customer does not receive duplicate messages. A stage change made by the automation can trigger the event too; account for this when choosing the condition.

Configure an agent's own response in Agent tools. If the event does not arrive, open Troubleshooting.

amoCRM automations overview.