NetHunt CRM
NetHunt CRM runs Workflows — automations that start when a record is added or a deal changes stage. Their action Make API call sends a request with a body you write yourself. Pointed at the Flows address, it starts your flows: a deal moves to the next stage, a new lead comes in — and the customer gets the right message in Viber or SMS, with a reminder if nothing happens.
This page is written from the public documentation of NetHunt CRM and has not been checked on a live account yet.
What you need
- A NetHunt CRM plan Business or Business Plus: they have Workflows and webhooks. Basic and Basic Plus have no automation.
- Every call spends an action from the monthly limit of the plan: 2,000 a month on Business, 5,000 on Business Plus; more can be bought.
- One Workflow — one event. All of them use the same address.
Step 1. Create a connection
- Open
Flows → Connections, press Connect a system and choose NetHunt CRM. - Press Copy address. It looks like
https://events.alphasms.net/hooks/<TOKEN>— keep it secret.
Step 2. Set up a Workflow in NetHunt CRM
- Open Workflows, create a new Workflow and choose its trigger — for example, Deal changes stage with the stage you need, New record is added, or a checkbox or a stage field in the folder.
- Press Add a New Action and choose Make API call.
- Request type —
POST, URL — the address from the cabinet. - JSON — paste the body below. Replace each value in
‹…›with a macro: press ADD MACROS and choose the field of the record. The fields depend on the folder, so the names below are examples. Changedeal_stage_changedineventto the event of this Workflow (see Events). - Headers —
Content-Typewith the valueapplication/json: NetHunt requires it for a JSON body. Other headers are not needed. - If you need it, switch on Continue in case of failed API call, so that the Workflow goes on after a failed call.
- Press ACTIVATE.
{
"event": "deal_stage_changed",
"contact": {
"phone": "‹Phone›",
"email": "‹Email›"
},
"traits": { "first_name": "‹First name›" },
"properties": {
"stage": "‹Stage›",
"deal": "‹Name›",
"total": "‹Amount›"
},
"context": { "source": "nethunt_crm" }
}
- Keep
context.sourceas it is: by it AlphaFlow recognises NetHunt CRM. - The phone macro has to give a phone number, not a messenger nickname — NetHunt's help names this as a frequent mistake.
- How a macro looks in the saved text, and whether the fields of a linked record — the contact of a deal — can be inserted, is not confirmed by the documentation.
The body has no event id: AlphaFlow accepts such an event with the warning no_message_id, and a repeated request is
recorded as a second event (repeats are rare — the address answers at once). If the record has a field with a unique
number, such as an order number, add two lines to the body:
"message_id": "nethunt:deal_stage_changed:‹Number›:‹Stage›",
"dedupe_key": "‹Number›",
message_id takes only printable ASCII without spaces. Keep ‹Stage› in it only if your stage names are one Latin
word; otherwise drop it, or the event is refused with invalid_message_id.
Step 3. Send a test
Move a test record with your own phone number to the stage of the trigger. The event appears in
Flows → Connections → Event journal within seconds, and the
connection shows Recognised: NetHunt CRM.
Events
| Trigger in NetHunt CRM | AlphaFlow event (event) | Properties |
|---|---|---|
| New record is added — a lead | lead_submitted | the ones you put into properties |
| Deal changes stage | deal_stage_changed | stage, deal, total |
| Deal changes stage → your "paid" stage | order_paid | deal, total |
order_created, order_status_changed, order_shipped, order_delivered and order_cancelled are taken the same
way. The contact is found by contact.phone, contact.email and contact.external_id; the first name comes from
traits.first_name. stage is a plain property: the body is already a AlphaFlow event, so there is no table of statuses
for it. The names of the events are the
ones the ready-made templates expect — see Recommended events.
A name like order_paid goes only into a Workflow whose trigger names that very stage — Deal changes stage with
your «Оплачено» stage. A Workflow on any change of the stage sends deal_stage_changed with stage: otherwise a deal
moved to another stage reaches the customer as "paid".
Good to know
- NetHunt does not describe repeats. The response code is available as a macro in the next steps: a filter after the call can, for example, create a task for the person in charge.
- NetHunt does not sign its requests; the secret in the address is enough.
- A quote in the value of a field breaks the JSON: NetHunt does not describe escaping in macros.
- The address always answers
200. Above the daily event limit the event is refused in AlphaFlow withquota_exceededand shown in the journal; the Workflow in NetHunt CRM stays on and still spends its action.