Skip to content

CHI-3641: Add channel_type attribute to new aselo webchat conversations.#4088

Draft
Copilot wants to merge 2 commits intoCHI-3641-channel_type_convo_attributefrom
copilot/sub-pr-4087
Draft

CHI-3641: Add channel_type attribute to new aselo webchat conversations.#4088
Copilot wants to merge 2 commits intoCHI-3641-channel_type_convo_attributefrom
copilot/sub-pr-4087

Conversation

Copy link
Contributor

Copilot AI commented Mar 23, 2026

Description

Adds channel_type: 'web' to conversation attributes when creating new Aselo webchat conversations via the webchat orchestrator, enabling studio flows that check channel_type as a channel attribute to work correctly. Also removes a redundant proxy session check from the conversations path of the channel janitor.

Changes:

  • initWebchat.ts: After webChannels.create, patches the new conversation with { channel_type: 'web' } via patchConversationAttributes
  • chatChannelJanitor.ts: Removes redundant proxy session check from the conversations code path
  • New unit tests for initWebchat.ts explicitly asserting client.flexApi.v2.webChannels.create and patchConversationAttributes are invoked with correct arguments

Checklist

  • Corresponding issue has been opened
  • New tests added
  • [n/a] Feature flags added
  • [n/a] Strings are localized
  • Tested for chat contacts
  • [n/a] Tested for call contacts

Other Related Issues

None

Verification steps

Create a new webchat conversation and confirm the conversation attributes include channel_type: 'web'. Verify studio flows that branch on channel_type route correctly for webchat contacts.

AFTER YOU MERGE

  1. Cut a release tag using the Github workflow. Wait for it to complete and notify in the #aselo-deploys Slack channel.
  2. Comment on the ticket with the release tag version AND any additional instructions required to configure an environment to test the changes.
  3. Only then move the ticket into the QA column in JIRA

You are responsible for ensuring the above steps are completed. If you move a ticket into QA without advising what version to test, the QA team will assume the latest tag has the changes. If it does not, the following confusion is on you! :-P


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…chConversationAttributes invocations

Co-authored-by: stephenhand <1694716+stephenhand@users.noreply.github.com>
Agent-Logs-Url: https://github.com/techmatters/flex-plugins/sessions/0c6cb863-13ab-44ab-91d9-a12ec2bf6070
Copilot AI changed the title [WIP] Add channel_type attribute to new aselo webchat conversations CHI-3641: Add channel_type attribute to new aselo webchat conversations. Mar 23, 2026
Copilot AI requested a review from stephenhand March 23, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants