Skip to content

feat(zendesk-messaging-hitl): add integration#14606

Merged
davidvitora merged 55 commits into
masterfrom
dv_create_zendesk_messaging_hitl
Dec 10, 2025
Merged

feat(zendesk-messaging-hitl): add integration#14606
davidvitora merged 55 commits into
masterfrom
dv_create_zendesk_messaging_hitl

Conversation

@davidvitora
Copy link
Copy Markdown
Contributor

This PR will create a new Integration allow using Sunshine Conversations as HITL(Downstream) channel

Copy link
Copy Markdown
Member

@franklevasseur franklevasseur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Work man!

I know this is still a WIP, but here are a couple of comments.

It might take some time, but we'll need to remove all any

Comment thread integrations/zendesk-messaging-hitl/integration.definition.ts Outdated
Comment thread integrations/zendesk-messaging-hitl/src/handler.ts Outdated
Comment thread integrations/zendesk-messaging-hitl/src/actions/hitl.ts Outdated
Comment thread integrations/zendesk-messaging-hitl/src/actions/hitl.ts
Comment thread integrations/zendesk-messaging-hitl/src/setup/register.ts
Comment thread integrations/zendesk-messaging-hitl/src/setup/utils.ts Outdated
Comment thread integrations/zendesk-messaging-hitl/src/client.ts Outdated
Comment thread integrations/zendesk-messaging-hitl/src/client.ts Outdated
Comment thread integrations/zendesk-messaging-hitl/src/actions/hitl.ts Outdated
Comment thread integrations/zendesk-messaging-hitl/src/actions/hitl.ts Outdated
Comment thread integrations/zendesk-messaging-hitl/src/index.ts
@davidvitora davidvitora marked this pull request as ready for review December 3, 2025 00:24
@davidvitora davidvitora requested a review from a team as a code owner December 3, 2025 00:24
Comment thread integrations/zendesk-messaging-hitl/src/actions/hitl.ts
throw new RuntimeError('No switchboards found. Please create a switchboard in Sunshine Conversations first.')
}
const firstSwitchboard = switchboards[0]
if (!firstSwitchboard) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: You could add a check if there is more than 1 switchboard to log.

Copy link
Copy Markdown
Contributor Author

@davidvitora davidvitora Dec 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't create another switchboard using their API it throws me an error saying that can be only one switchboard per app, and its the same app for every Conversation API key that I generate, so I guess this Switchboard API was adapted from Sunco to the Zendesk Messaging backend after they bought it and they only have a default and another can't be created, but we should indeed add that check in case that changes in the future, we should probably throw so it becomes visible to us, since we wouldn't be sure on which one to pick if that ever changes

image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Copy Markdown
Member

@franklevasseur franklevasseur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

messageParts: Array<MessageContent>
) {
try {
let message
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

todo: missing a type here; this is considered an implicit any

})

if (!result?.conversation?.id) {
throw new RuntimeError('Conversation creation succeeded but no ID returned')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

todo: use SuncoClientError to make sure this error does not get wrapped / mapped

The same comment applies many times below.

@@ -0,0 +1,565 @@
// @ts-expect-error No types for sunshine-conversations-client
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

praise: 👍

@davidvitora davidvitora requested a review from a team as a code owner December 9, 2025 19:56
@davidvitora davidvitora merged commit d6ee02a into master Dec 10, 2025
8 checks passed
@davidvitora davidvitora deleted the dv_create_zendesk_messaging_hitl branch December 10, 2025 15:08
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.

3 participants