Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Log the call after it ends, a Twilio voice agent to HubSpot and WhatsApp with Zapier

This article was drafted with AI help and reviewed by the author. When a team adds a phone agent, the CRM wish list arrives quickly. Log every call in HubSpot. Update the contact. Send a WhatsApp recap. Tell sales in Slack. The tempting place to do all of that is in the middle of the call, because that is where the information is. It is also the worst place. Every second spent on CRM work during…

After a call ends, it's crucial to log the interaction and update relevant records in CRM systems like HubSpot. The preferred method is to have a voice agent handle the call and then use Zapier to process the data post-call. This approach avoids disrupting the caller by keeping all CRM-related tasks away from the call itself.

Zapier can interact with Twilio to process the call data, but it cannot output a custom response that would affect the call flow. Therefore, the Zapier steps run independently of Twilio's response. The voice agent should save a brief outcome record for each call, including details like call SID, caller phone number, direction (inbound or outbound), intent, outcome, and a summary of the conversation.

The outcome field should be limited to a select few options such as "booked," "callback requested," "not interested," or "wrong number." The WhatsApp consent must be explicitly captured and reflect what the caller agreed to, not what the model inferred.

The workflow starts with Twilio sending a completed status callback to a Zapier Catch Hook. This callback includes crucial information like the call SID and duration. This data is then filtered based on the call status, with only completed calls proceeding further.

Zapier checks if a record of the call already exists in a "processed calls" table. If so, it stops the Zap to avoid logging duplicate calls. If not, it creates a new record with the call SID and the current time. The outcome record is then fetched using the call SID and logged in HubSpot.

On HubSpot, the system checks if a contact exists for the provided phone number. If not, it creates a new contact with the phone number and marks the source as "phone agent." The call details, including the summary, outcome, and duration, are logged against this contact.

If the caller opted in to WhatsApp notifications and the outcome was to book a demo, an approved WhatsApp template is sent out. The template is customized using the outcome record to fill in placeholders for the demo date and time. This WhatsApp message is only sent if the caller opted in.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Build a masked QA database from a production sample, from the command line

QA needs data that looks like production: the same keys, cities, credit limits and signup dates. It does not need real names, tax IDs, e-mails or phone numbers.

  • dbSlice tool used to create masked QA database
  • Sampling selects every 17th row from 10,000 records
  • Column-level masking applies specific transformations

UX Writing vs. Technical Writing: What's the Difference?

A button says "Save changes." Two screens later, a help article says, "To save your changes, select the Save changes button in the top right corner of the page." Same product. Same action.

  • UX writing focuses on product experience elements like button labels and error messages.
  • Technical writing provides detailed documentation and guides for product use.
  • UX writing targets engaged users, while technical writing serves users seeking information.

Adopting a secret scanner in a legacy repo: 10 minutes with baseline mode

For teams with years of history that want a real pre-merge gate, not another red job nobody reads. Commands and exit codes below were run locally; demo credentials are random values generated at…

  • LeakPulse's baseline mode creates a reviewed inventory of existing secrets in legacy repos.
  • First scan revealed a high-priority secret in a Python repository with hardcoded DeepSeek API keys.
  • LeakPulse successfully detected and flagged new secrets after rotating an existing key.

More from Saturday, 28 November 2026 →