ruLog in to Senler

Contacts

This article shows how to retrieve, create, or update a contact in a For dialogs automation. Choose the action you need; running all three in sequence is unnecessary. Connect the amoCRM account in the same project first.

Where to add a step

Open Automations (1) and the required workflow (2). If it does not exist, click “Add” and create a For dialogs automation. On a phone, open the side menu first.

Opening a workflow: 1 — Automations; 2 — the required workflow

In the editor, click Add step (1).

Adding an action: 1 — Add step

Find the amoCRM group and choose an action, such as Get contact (1). Use the same catalog and name search for the other actions.

Selecting an action: 1 — Get contact

Get contact

  1. In the inputs, leave Contact ID empty to use the contact linked to the current Senler lead. For a specific contact, enter its numeric ID.
  2. In Step result (1), choose which values to save: ID, name, phone, or email. For example, save the name to the process variable amocrm_contact_name to use it in a message.

Retrieving a contact: 1 — saving results to variables

The step has Found and Not found outputs. Use contact data on the Found path; on the other path, clarify the details or ask a manager to check.

The step does not search for people by name or phone number. A missing link to the Senler lead does not necessarily mean the customer is absent from amoCRM.

Create contact

Choose Create contact. In Inputs (1), enter Contact name and optionally a phone number and email. The screenshot uses demonstration data.

Creating a contact: 1 — name, phone, and email

Text fields support variables through the button beside the field. For example, use a customer name collected earlier. In Step result, save the contact ID and card link if needed later.

The action creates a new contact and links it to the current Senler lead. It does not create a deal. Before running it, check that a new contact is needed: repeated creation can produce a duplicate.

Update contact

Choose Update contact. In Inputs (1), enter the existing contact ID and at least one new value: name, phone, or email.

Updating a contact: 1 — ID and new details

A phone number or email replaces the values in that field. An empty field does not remove stored data.

Contact ID accepts a specific number. This field has no variable picker, so the editor cannot insert an ID saved by another step. To work with different contacts based on a conversation, use agent tools.

Save and connect the steps

Click Save (1) at the bottom of the panel. The cross closes it without saving entered values.

Saving settings: 1 — Save

Connect the preceding block's output to the action, and connect the selected step's outputs (1) to subsequent actions. Provide both paths for Get contact. Contact creation and updates have one continuation each. Wait for the workflow save status.

Workflow connections: 1 — the step and its outputs

Test and enable

Click Testing (1) and select the starting step and test conversation. In test mode, Get contact returns Not found, while creation and updates do not change CRM data. To check a real result, use a normal run with an agreed test contact and verify its record in amoCRM.

Testing and publication: 1 — Testing; 2 — Publish

After checking, click Publish (2) and confirm. If the workflow is disabled, open its status button and choose Enable. More about testing.

amoCRM automations overview.