# WACM CRM: lead management and follow-ups

Reviewed against local code: 22 October 2026 (updated from 18 October 2026 checkpoint). Availability depends on workspace rollout. Local implementation does not confirm production activation.

## 1. Create your first enquiry

A contact has a sales enquiry, an accountable owner and a next action.

1. Open CRM in your company workspace. Choose Lead tracker for a simple process, Sales for a sales pipeline, or Appointments for bookings. Start with one pipeline.
2. Search for the contact before creating another record. Open or create an enquiry from the contact or conversation, or use New enquiry in CRM.
3. Give the enquiry a specific title, such as “Annual plan for Acme”, select the pipeline and review the stage.
4. Assign an enquiry owner. Add the requirement and a short internal note with what the customer needs.
5. Schedule a follow-up with a clear task title, due date, timezone and assigned member. The enquiry owner and task assignee can be different people.

Best practice: A contact is a person. An enquiry is a sales opportunity. The same contact may have multiple enquiries; check existing work first.

## 2. Manage your day and quick actions

Every active enquiry has a clear next step and useful history.

1. Open My day and review overdue work before today’s follow-ups. Review enquiries missing a next action and unassigned work that your role can access.
2. Use the lead list search and pipeline, stage, owner, outcome, or response velocity filters (such as unresponded leads or SLA breached). Save a view for work you repeat.
3. In live WhatsApp conversations, open the right SideApp drawer to view active enquiries, update stages, add notes, or inspect Meta ad attribution without switching tabs.
4. Open quick view to review recent history, add an internal note or change stage. Use the full enquiry for the complete notes, tasks and activity timeline.
5. Use the available call or conversation shortcut to contact the person. Record the result in an internal note.
6. Complete or reschedule the follow-up and create the next action. Update the sales stage after a meaningful change. Record the result when an enquiry is won or lost.

Best practice: A stage describes sales progress; a follow-up describes work to do. Fast response velocity prevents SLA breaches.

## 3. Review your pipeline as a team

Stages and assignments reflect the real sales process.

1. Open Pipeline and review enquiries by stage. Open a card to inspect its owner and next action.
2. Use the stage update control when progress changes. Review the reason when closing an enquiry as lost.
3. Agree on what each stage means, such as “Qualified = requirement and timeline confirmed”. Keep stage names short and distinct.
4. Review overdue, stalled and unassigned work together. Reassign ownership explicitly and confirm the next follow-up member.

Best practice: Use a few stages your team understands. Add more only when they represent a different decision or handoff.

## 4. Import leads and configure inbound capture

New enquiries are reviewed before bulk changes or automated capture.

1. Open the import or adoption preview and select the source and target pipeline. Review potential matches, duplicates and row errors.
2. Review the saved batch and explicitly confirm the intended rows. Permissions and duplicates are checked again at confirmation.
3. Read the per-row results. Correct rejected or skipped rows rather than repeatedly submitting a whole file.
4. For inbound capture, define multi-phrase matching rules (e.g. comma or newline-separated keywords) and assignment behavior. Run a dry-run preview before enabling.
5. When leads click Meta Click-to-WhatsApp (CTWA) ads, WACM automatically captures the ad ID, headline, and Click ID (ctwa_clid), tags the contact, and enriches lead attribution.
6. For website forms, call the authenticated lead ingestion endpoint (POST /api/v1/crm/leads/ingest) from your backend. For IndiaMART pilot workspaces, configure the private Push URL in CRM → Lead capture → IndiaMART.
7. Verify that the selected owner can see the enquiry and that the captured lead has a useful next action.

Best practice: Importing a phone number or receiving an enquiry does not grant customer marketing consent.

## 5. Set up a member’s WhatsApp notifications

A member controls their own opted-in, verified work number.

1. Open CRM → Notifications in your company workspace. Enter your own work WhatsApp number and explicitly choose whether to opt in.
2. Save the setup. If verification is needed, copy the one-time code shown on the page.
3. From that work number, send the code to the connected business WhatsApp number shown in the instructions before the code expires.
4. Use Check status. Verification depends on the business receiving a valid signed callback; merely pressing the button does not verify the number.
5. If the code expires, use the retry control. Reset and release your setup when changing numbers. Owners can revoke a setup but cannot opt another member in.

Best practice: Saving a number does not send a reminder. A missing owner or assignee does not silently redirect a notification to a manager.

## 6. Install and configure your first CRM flow

A reviewed starter remains a disabled draft until you publish it explicitly.

1. As the workspace owner, open CRM → Notifications → Get started with CRM flows. Choose Assigned follow-up for your first recipe.
2. Confirm Create a new disabled draft. The connected starter opens in Flow Maker; installation does not send, publish or enable it.
3. Review the CRM event. Assigned follow-up uses the task-assigned event; new tasks with an assignee and later assignment changes can produce this event.
4. In CRM notification, keep Assigned follow-up member or explicitly choose Enquiry owner, Specific team member or Customer.
5. Choose an approved utility template for staff. Map every numbered body field to an allowed CRM field, such as recipient name, enquiry title or follow-up due time.
6. Open Preview eligibility and message inside the notification. Load a sample enquiry, choose a matching follow-up and review eligibility, masked destination and message content.
7. Fix missing assignment, verification, opt-in or template settings. Save as draft when incomplete. Use Checks and connect every required output.
8. Publish changes only after review. Publishing preserves the flow’s active state; enable it separately only after your workspace’s rollout and delivery checks are approved.

Best practice: Changing a selection invalidates the old preview. Preview again. An eligible sample is not a guarantee of delivery later.

## 7. Add decisions or conversation actions

Automation uses explicit enquiry context and clear branches.

1. For event-driven notification flows, use CRM event → CRM decision → CRM notification → End. Connect both Yes and No outputs of a decision.
2. Choose event fields to check what happened then, or current fields to check the enquiry or task when the step runs.
3. Keep conversation action flows separate from the event-driven notification graph. Use Find Enquiry before changing an existing enquiry from a conversation.
4. Connect all three Find Enquiry outputs: single, none and ambiguous. Use single for the identified enquiry, none for a reviewed creation path, and ambiguous for clarification or a human handoff.
5. Use Create Enquiry, Assign Enquiry, Update Sales Stage, Add Internal Note or Schedule Follow-up only with the intended pipeline, enquiry and member. Test with a sample contact first.

Best practice: Never select the first enquiry when multiple open enquiries match a contact. Notes stay internal and are unavailable as customer notification variables.

## 8. Preview campaign audiences and nurturing

Outreach reaches eligible customers with appropriate content.

1. Open Campaign audiences and define the relevant pipeline, stage or other supported segment filters.
2. Choose the supported approved message template and preview the audience before confirming. Review eligible and excluded contacts and their reasons.
3. Check recorded marketing consent, subscription, suppression and template cooldown requirements. An owner or task assignment is not consent.
4. Start with a small, reviewed audience. Enable nurturing only after its rule, recipient scope and pause behavior are understood.
5. Stop or adjust outreach when the customer opts out, the enquiry closes or the current eligibility changes. Review results before expanding.

Best practice: The CRM notification node’s customer option currently supports approved static marketing text, without internal enquiry or task field bindings.

## 9. Review results and improve the workflow

Your team learns where enquiries stall and which sources perform.

1. Open CRM reports and choose the supported date range, pipeline and owner filters.
2. Review intake, outcomes, conversion, source breakdown, stage age, and Speed-to-lead first response SLA compliance together. A completed follow-up is an activity, not proof of a sale.
3. Review a few stalled or lost enquiries each week. Look for missing owners, late follow-ups, unclear requirements and poor source fit.
4. Change one process at a time and compare the same filters and period definitions. Reconcile reported outcomes against the enquiry history.

Best practice: Reports use bounded datasets. Read any truncation or coverage notice before treating a report as a complete business total.

## Starter recipes

- Assigned follow-up: When a follow-up is assigned. Recipient: Follow-up assignee. Review: Assignment, member access, verified work number and opt-in.
- Upcoming follow-up: 30 minutes before due by default. Recipient: Follow-up assignee. Review: Advance interval, due time, timezone and enabled task reminders.
- Overdue follow-up: When the overdue boundary is reached. Recipient: Follow-up assignee. Review: Workspace overdue policy (24 hours after due by default), task reminders and intended escalation recipient.
- New enquiry: When an enquiry is created. Recipient: Enquiry owner. Review: Owner assignment and what happens when no owner exists.

## Troubleshooting

### Why is CRM missing from my menu?

Open the company workspace as its owner or an eligible staff member. Ask the owner or administrator to check feature availability and rollout for that company. The platform administrator menu is different. A code deployment alone does not enable CRM.

### Does scheduling a follow-up send WhatsApp automatically?

Scheduling records the task. A matching, published and enabled automation with a configured recipient and approved template is required for notification delivery, along with workspace rollout and send eligibility.

### Why would a notification be skipped?

Check assignment, current enquiry access, member opt-in and verification, template approval, task state, connection and any customer consent or suppression requirements. The preview explains the current reason. Fix the cause and preview again.

### Can I use staff reminders to message customers?

Choose Customer explicitly. Customer messaging has separate consent and eligibility checks and currently supports static marketing templates only. A team member’s notification opt-in is separate from customer marketing consent.

### What if I cannot verify my number?

Use the exact enrolled work number and connected business number. Send the current code before expiry, then check status. Ask the owner to check the WhatsApp connection and signed inbound callbacks if the code arrived but verification stays pending.

### Can I assume a dispatched message was read?

No. Provider acceptance is different from delivered or read status. A timeout can also leave the provider outcome uncertain. Ask the workspace administrator to reconcile the message before manually sending a duplicate.

### How does Meta Click-to-WhatsApp (CTWA) ad attribution work?

When a customer starts a chat by clicking a Facebook or Instagram ad, Meta transmits the referral payload on the very first message. WACM extracts the Ad ID, headline, body copy, and Click ID (ctwa_clid), tags the contact with the ad name and CTWA Leads, enriches the lead source, displays an in-drawer Ad Attribution Card for live agents, and retains the ctwa_clid for offline conversion reporting via Meta Conversions API (CAPI).

### How do we ingest leads from website contact forms or landing pages?

From your backend, call POST /api/v1/crm/leads/ingest with a Bearer token, name and phone. You can also send email, title, requirement, value, currency, pipeline_id, stage_id and source. Each accepted request creates an enquiry.

---

# WACM CRM & Sales Pipelines API (v1)

Base URL: https://app.wacm.in/api/v1/crm. Authorization: Bearer Sanctum token. Tenant-scoped, role-checked, throttle 60/minute. Optimistic locking enforced via version property.

| Method | Relative path | Input / behavior |
| --- | --- | --- |
| GET | /pipelines | List active sales pipelines and ordered stages. Paginated. |
| POST | /pipelines | Create custom pipeline ({ name, description?, stages? }) or provision starter template ({ template: 'simple'|'sales'|'appointments' }). Owner only. |
| PATCH | /pipelines/{pipeline} | Rename a sales pipeline or update its description. Owner only. |
| POST | /pipelines/{pipeline}/stages | Add a new open, won, or lost stage to an existing pipeline. Owner only. |
| PATCH | /pipelines/{pipeline}/stages/{stage} | Rename a stage or change its outcome classification (must be empty to change outcome). Owner only. |
| DELETE | /pipelines/{pipeline}/stages/{stage} | Archive an empty stage (rejected if any leads remain). Owner only. |
| GET | /leads | List and search enquiries. Query filters: source (indiamart for IndiaMART), contact_id, pipeline_id, stage_id, owner_id, outcome, unassigned, needs_next_action, overdue_follow_up, unresponded (1/0), sla_breached (1/0), meta_ad (1/0), sort (updated_desc/created_desc/value_desc/oldest_open), search, page, per_page. |
| POST | /leads | Create enquiry: contact_id, pipeline_id, title, optional requirement, owner_id, value, creation_key (idempotency UUID). |
| POST | /leads/ingest | Authenticated form ingestion: { phone, name, email?, title?, requirement?, value?, currency?, pipeline_id?, stage_id?, source?, source_detail? }. Each accepted call creates an enquiry. |
| GET | /leads/{id} | Enquiry detail, contact, owner, current stage, next action, first_response_at timestamp, sla_breached flag, pending and overdue task counts. |
| PATCH | /leads/{id} | Update enquiry fields ({ title, requirement, owner_id, value, version }). Version is required for optimistic concurrency. |
| PUT | /leads/{id}/stage | Move enquiry stage ({ stage_id, version, lost_reason? }). lost_reason required when stage outcome is lost. |
| GET | /leads/{id}/people | List team members eligible to own this enquiry or receive assigned follow-up tasks. |
| GET | /leads/{id}/activities | Audit timeline history for an enquiry. Paginated. |
| GET | /leads/{id}/notes | List internal enquiry notes. |
| POST | /leads/{id}/notes | Add internal note: { body, message_id?, retry_key? }. Notes stay private and are never sent to customers. |
| GET | /tasks | List assigned follow-up tasks across enquiries. Filters: lead_id, status (pending/completed/cancelled), assignee_id, mine, reminded, overdue, due_from, due_to. |
| GET | /tasks/{id} | Get single follow-up task details by task ID. |
| GET | /leads/{id}/tasks | List tasks linked to a specific enquiry. |
| POST | /leads/{id}/tasks | Schedule follow-up task: { title, due_at, assignee_id?, retry_key? }. |
| GET | /leads/{id}/tasks/{task_id} | Get task detail within enquiry context. |
| PATCH | /leads/{id}/tasks/{task_id} | Update task: { title, due_at, assignee_id?, version }. |
| PUT | /leads/{id}/tasks/{task_id}/complete | Mark task completed: { outcome, version }. |
| PUT | /leads/{id}/tasks/{task_id}/cancel | Cancel task: { outcome, version }. |
| GET | /reports | Read CRM cohort conversion reports, intake trends, stage stay durations, team performance leaderboard, and Meta CTWA ad performance. Parameters: from, to, timezone, pipeline_id, owner_id, source, compare, page. |
| GET | /automation/preferences | Read team member notification preferences, verified work number, and verification status. |
| PUT | /automation/preferences | Update preferences: { phone, opt_in, notify_tasks, version }. Returns verification_code for 10-minute WhatsApp verification when phone is updated. |

## In-Chat Live Chat SideApp Drawer (/crm/sideapp/*)
| Method | Relative path | Input / behavior |
| --- | --- | --- |
| GET | /crm/sideapp/contact/{id} | Load contact details, active enquiries, recent internal notes, pending tasks, available pipelines/stages, and Meta CTWA ad attribution during live chat. |
| POST | /crm/sideapp/contact/{id}/create-lead | Create enquiry directly from chat drawer. Inherits ad headline, campaign ID, and Click ID if customer clicked an ad. |
| POST | /crm/sideapp/lead/{id}/stage | Inline stage movement with inline lost reason validation when moving to lost. |
| POST | /crm/sideapp/lead/{id}/note | Log internal agent note attached to lead directly from chat session. |
| POST | /crm/sideapp/lead/{id}/task | Schedule a follow-up task with quick presets (1h, today_5pm, tomorrow_10am, 3d) or custom due_local directly from chat. |
| POST | /crm/sideapp/lead/{id}/task/{task}/complete | Mark a pending follow-up task complete in 1 click directly from live chat. |

## Meta Click-to-WhatsApp (CTWA) Ad Referral Attribution & CAPI
- Referral Capture: On the first incoming message of a CTWA ad thread, extracts source_id, headline, body, source_url, ctwa_clid (Meta Click ID), media_type, image_url, and video_url.
- Automatic Tagging: Stamps contacts with `Ad: <headline>` / `Ad ID: <source_id>` and `CTWA Leads`.
- Lead Attribution: Enriches lead source_detail with `Meta Ad: <id> ("<headline>") [CLID: <ctwa_clid>]`.
- Meta Conversions API (CAPI): Preserves `ctwa_clid` for downstream offline conversion matching when leads reach 'Won' stage.

## Model Context Protocol (MCP) Integration
Package: @codingmantra/wacm-mcp (--toolsets=crm or --preset=daily). Its CRM toolset includes 10 read tools (list_crm_pipelines, list_crm_leads, get_crm_lead, list_crm_lead_notes, list_crm_lead_activities, list_crm_lead_people, list_crm_tasks, get_crm_task, get_crm_reports, get_crm_automation_preferences) and 15 action tools (create_crm_pipeline, update_crm_pipeline, add_crm_pipeline_stage, update_crm_pipeline_stage, archive_crm_pipeline_stage, create_crm_lead, ingest_crm_lead, update_crm_lead, update_crm_lead_stage, add_crm_lead_note, create_crm_task, update_crm_task, complete_crm_task, cancel_crm_task, update_crm_automation_preferences).

IndiaMART pilot workspaces can read imported enquiries with GET /api/v1/crm/leads?source=indiamart or list_crm_leads with { "source": "indiamart" } in an MCP build that includes the source filter. Connection setup, URL rotation, and delivery review are managed in WACM CRM. https://wacm.in/docs/integrations/indiamart
