Skip to content

fix(contacts): show user_id and channel ids in contact detail panel - #1145

Open
JuanBifrost wants to merge 5 commits into
ChatbotXIO:mainfrom
JuanBifrost:fix/contact-detail-show-contact-id
Open

fix(contacts): show user_id and channel ids in contact detail panel#1145
JuanBifrost wants to merge 5 commits into
ChatbotXIO:mainfrom
JuanBifrost:fix/contact-detail-show-contact-id

Conversation

@JuanBifrost

Copy link
Copy Markdown
Contributor

Summary

The contact detail sidebar showed ContactInbox.sourceId (e.g. WhatsApp wa_id) under Contact ID instead of the workspace contact record id.

This PR aligns the panel with ChatbotX system fields for faster API testing:

  • User ID{{user_id}} (contact.id, used in GET /v1/contacts/id:{id})
  • User Code{{user_code}} (ContactInbox.sourceId, e.g. WhatsApp phone / wa_id)
  • Existing WhatsApp scoped rows still show {{wa_user_id}} and {{wa_user_name}}

Tested in production on a WhatsApp Cloud API channel (IRIS).

How to test

  1. Open a WhatsApp conversation in the inbox.
  2. Open the contact detail panel.
  3. Confirm User ID matches contact.id from GET /v1/contacts/id:{id}.
  4. Confirm User Code shows the channel sourceId (phone / wa_id).
  5. Confirm WhatsApp User ID still shows sourceUserId when present.
  6. On a non-WhatsApp channel, confirm User Code still shows sourceId when set.

Screenshots

Contact detail panel after the change (User ID / User Code / WhatsApp User ID):

image

JuanBifrost and others added 4 commits September 11, 2026 00:52
The Contact ID row was bound to ContactInbox.sourceId (e.g. WhatsApp
wa_id) instead of the contact record id returned by the API.

Co-authored-by: Cursor <cursoragent@cursor.com>
Align the sidebar with ChatbotX system fields for faster API testing:
- User ID ({{user_id}}) shows the workspace contact record id
- User Code ({{user_code}}) shows ContactInbox.sourceId (e.g. WhatsApp wa_id)
- Existing WhatsApp scoped rows still expose {{wa_user_id}} / {{wa_user_name}}

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions github-actions Bot added the bug Something isn't working as expected label Sep 11, 2026
Let template FLOW buttons use actionData with variables, dump the full nfm_reply to a custom field, and continue the IRIS graph via a Flow completed branch after the user finishes the flow.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant