Skip to content

support bot: escalate to team when Grok's reply contains /team#6968

Merged
epoberezkin merged 1 commit into
masterfrom
nd/grok-team-cmd
May 12, 2026
Merged

support bot: escalate to team when Grok's reply contains /team#6968
epoberezkin merged 1 commit into
masterfrom
nd/grok-team-cmd

Conversation

@Narasimha-sc
Copy link
Copy Markdown
Collaborator

Grok answers customer questions in the support bot, but until now it had no way to hand a conversation to a human — the customer had to notice and type /team themselves. This change lets Grok escalate by simply including /team anywhere in its reply (per-message replies and its initial post-join reply): the bot then runs the exact same escalation as a customer /team — invites the team members and switches the conversation to TEAM-PENDING — while still posting Grok's reply. Detection is on Grok's generated text only, so the /team mention in the API-error fallback message can't trigger a false escalation.

Detect the substring /team anywhere in Grok's AI reply (per-message and the
initial post-join reply) and run the same escalation as a customer /team:
invite the team members and switch the conversation to TEAM-PENDING. The reply
itself is still posted to the chat.
@Narasimha-sc Narasimha-sc requested a review from epoberezkin as a code owner May 11, 2026 16:29
@epoberezkin epoberezkin merged commit de573a2 into master May 12, 2026
9 of 10 checks passed
@epoberezkin epoberezkin deleted the nd/grok-team-cmd branch May 12, 2026 15:48
@github-actions github-actions Bot locked and limited conversation to collaborators May 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants