Skip to content

feat(flows): add call phone number button - #1599

Merged
viethung0o0 merged 1 commit into
mainfrom
feat/call-phone-number-button
Nov 1, 2026
Merged

viethung0o0 merged 1 commit into
mainfrom
feat/call-phone-number-button

Conversation

@viethung0o0

@viethung0o0 viethung0o0 commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add a "Call Phone Number" button to flow step buttons. The number is stored in international form (+14155552671) or as an expression with {{variables}}.
  • Messenger (phone_number), Zalo (oa.open.phone) and webchat (tel: link) show a native call control, as listed in each channel's nativeButtonTypes policy. Other channels get a reply button that shows the number and replies with it when tapped.
  • An invalid number at send time becomes a button with no action instead of being dropped, so card button counts stay the same.
  • The button cannot continue the flow or run extra steps. It is rejected on quick replies, message-template steps and the WhatsApp Flow button.
  • Editor: optional, searchable country picker (flag + dial code) that defaults to the workspace country. Typing a full +… number picks its country, and a phone icon marks call buttons on the canvas.
  • Available through the flow API and flow spec (call), and capabilities.get reports nativeButtonTypes.

Behavior change outside the call button

  • Webchat carousel card buttons used to do nothing when tapped. They now open their link or send their reply, the same as buttons on a button template.

Not included

  • Local numbers without a country code (for example 19001080) are rejected. Messenger requires + and a country code.

Validation

  • pnpm lint, including the builder i18n check
  • pnpm turbo check-types across the repo
  • Tests for flow-config, business, worker and every channel integration that sends buttons, using numbers from several countries
  • Messenger and Zalo payloads checked against their official button docs
  • Checked the editor in the browser

Issue

  • No issue provided.

@github-actions github-actions Bot added the feature New feature or request label Oct 30, 2026
@viethung0o0
viethung0o0 force-pushed the feat/call-phone-number-button branch 4 times, most recently from 95e8ea4 to ac46fc4 Compare October 31, 2026 20:23
A flow button can now call a phone number. Messenger, Zalo and webchat
send it as their own call control; channels without one send a reply
button showing the number, and tapping it replies with the number.

- flow-config: callPhoneNumber button and step, one number rule
  (libphonenumber), per-channel nativeButtonTypes policy, FlowSpec `call`
  field, and rejection on quick replies, message templates and the
  WhatsApp Flow button
- worker: validates the number at send time (an invalid one becomes an
  inert button), adds the number to the title on reply channels, and
  replies with the number when such a button is tapped
- messenger/zalo: phone_number and oa.open.phone buttons; webchat and
  inbox render a tel: link, and carousel card buttons now open links and
  reply like other template buttons
- builder: call number editor with an optional, searchable country
  picker that defaults to the workspace country, and a phone icon on call
  buttons in the canvas
@viethung0o0
viethung0o0 force-pushed the feat/call-phone-number-button branch from ac46fc4 to 00634fa Compare November 1, 2026 02:25
@viethung0o0
viethung0o0 marked this pull request as ready for review November 1, 2026 03:26
@viethung0o0
viethung0o0 merged commit 7a45b13 into main Nov 1, 2026
14 checks passed
hello-jackytruong referenced this pull request in hello-jackytruong/ChatWorkAI Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants