Agent tools
Give an agent amoCRM tools so it can look up customer details, create deals, and pass information to a manager during a conversation. First, connect the account in the same project.
1. Open the agent
Select the project where the app is connected. In the left menu, click Agents (1) and open the required agent (2). On a phone, open the side menu first.
If you do not have an agent yet, create and save one. Plugin tools become available after the first save.
2. Add a tool from the Tools tab
Open Tools (1). Find the Plugins section and click Add (2).
In the “Add from plugins” window, expand amoCRM (1). Select an action, for example Get contact. Repeat this for the other actions you need.
The action appears in the agent's Plugins section. It is added immediately; these tools do not require a separate parameter configuration. The agent determines values from the conversation and its instructions.
3. Add a tool reference with @
This is another way to connect a tool and describe when to use it in the instructions. If the tool is already added, select it from the reference catalog.
Open Settings (1) and find the instruction field. Place the cursor where you want the reference and click @ (2) below the editor. You can also type @ in the text.
Choose Plugins (1), then amoCRM → Tools.
In the tool list, click Get contact (1).
A tool tag (1) appears in the instructions. If the action was not connected to the agent, it is added automatically. Next to the tag, describe when to call the tool and how to use its result.
For example: “Before discussing a request, use [Get contact] to check the current customer’s details.” Replace the name in square brackets with a tag inserted through @. Typing the name as plain text does not connect the tool.
4. Describe the workflow
Describe which details to ask for, when to create a request, and when to involve a manager. For example:
First check the customer's contact and open deals. If there are several deals, ask which one they mean. Before creating a new request, collect their name and required contact details, repeat the details, and obtain confirmation. Do not create a duplicate if a suitable deal already exists. Report success only after the tool succeeds.
“Get contact” checks the contact linked to the current Senler lead, or a contact with a known ID. It does not search by name or phone number. If there is no link, establish whether this is a new customer before creating a contact, or ask a manager to check.
5. Check and publish the instructions
Wait for the draft save status. In the agent's test chat, start with retrieving a contact and its deals. Test creation and updates with agreed test data and verify the result in amoCRM.
After testing, click Publish (1) at the top, confirm in the window that opens, and wait for completion.
The tool is connected immediately; the new instruction text takes effect after publication. If the agent is disabled, enable it and configure assignment to conversations.
What each tool does
Get contact
Returns a contact's name, phone number, and email. For the current lead, it uses the linked contact; otherwise, it needs the contact's ID, its numeric identifier in amoCRM. If no contact is found, the agent should clarify the next action.
List contact deals
Lists the selected contact's deals, including names, amounts, stages, and card links. It returns open deals by default; closed or all deals can also be requested. If several deals match, the agent should use the conversation to identify the right one or ask the customer.
Get deal
Returns one deal's details by ID. If the ID is unknown, use “List contact deals” first.
Create contact
Creates a new contact from a name. A phone number and email can be included when available. This does not create a deal. Calling the tool again creates another contact, so first check whether a new one is needed.
Update contact
Changes an existing contact's name, phone number, or email. It needs the contact ID and at least one new value. A supplied phone number or email replaces the values in that field; an empty value does not remove data.
Create deal
Creates a new deal for an existing contact. It needs the contact and a deal name; an amount, pipeline, stage, assignee, and tags can also be supplied. The result includes the deal ID and a link to its card.
Update deal
Changes a selected deal's name, amount, pipeline, stage, assignee, loss reason, or tags. Use the exact deal ID. To continue work on an existing request, update it instead of creating another deal.
Get amoCRM configuration
Lists available pipelines, stages, and staff. Add this tool if the agent needs to choose where to move a deal or whom to assign it to.
Add note
Adds text to a contact or deal card. Use it to give a manager a conversation summary, customer preferences, or agreed next steps. The agent needs the target card and note text.
Create task
Creates a task for a contact or deal. Specify what needs to be done; optionally provide an assignee, task type, and deadline in minutes. If no deadline is supplied, the task is due one hour after creation.
Responding to a deal stage change
Connect this event when the agent should choose its own response after a stage change.
- Open the agent, go to Tools, and click Add in Plugins.
- Expand amoCRM and select Deal stage changed (1).
- Click Add (1) in the event description. The event appears in the agent's amoCRM group.
- Describe the required response in the agent instructions and publish the instructions. Check that the agent is assigned to the customer's conversation.
For testing, use a deal created or retrieved by the agent in the required conversation. Change its stage in amoCRM and check the response. If the event also starts an automation, divide the actions between it and the agent. Configure an event automation.
If an action fails
Instruct the agent to explain the problem and hand over to a manager. If a creation attempt ends without a clear result, check amoCRM first: another attempt may create another record.
See troubleshooting for causes and checks.