Repository navigation
Give support triage the catalog and the last AI call - #1183
Merged
Merged
Conversation
The triage only saw the workspace's own connectors, so it told two
customers we had no Telegram connector when the catalog has one, and it
handed out the OAuth redirect URI for bot-token connectors. It now gets
the catalog connectors named in the messages, the installed connectors'
names and the day of the last successful tool call ("never" = no AI
client connected), with rules for each.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two support chats this week, both about the Telegram connector, show the support AI giving wrong answers:
telegram-bot, but the triage only saw the workspace's own connector count.Changes
support-catalog.ts: the listed catalog connectors that a customer names in their messages. Every content word of a name or alias must appear in the text, so "telegram" finds Telegram Bot and "google" alone does not pull in every Google connector. The list is capped at 6. Each match is passed to the triage with its setup page.connector_names(bounded);last_tool_call: the day of the last successful tool call, ornever. Its query is filtered by the organization.nevermeans connect an AI client; redirect URI only for OAuth connectors; pasted secrets). The private note shows the connector names and the last AI call.Done outside this PR, on the support desk (not in the repo):
email_verified, which was set but never declared);Code lives in
ee/support, as decided for the support chat. Cloud only: the triage runs where the Libredesk key is set. Dedicated instances only send the snapshot.Type
Testing
support-catalog.spec.tscovers a match in English and Russian, multi-word names, no match, and the prompt line.never, organization filter.Commands (in
packages/backend):npx jest src/ee/support src/adapters/catalog-search.spec.ts: 73 passed.npx tsc --noEmit -p tsconfig.json: passes.npx eslint src/ee/support: passes.Checklist