Skip to content

Commit 47494d5

Browse files
committed
docs(agent): describe the real invite result in the onboarding skill
invite_to_slack_channel never returns a top-level invited: false. It returns invited and refused arrays, and it throws when Slack refuses every address. The skill named a field that does not exist, so the agent could not act on a partial refusal.
1 parent b44abde commit 47494d5

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

‎apps/agent/agent/skills/customer-onboarding.md‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,15 @@ and decide whether it needs you.
5353
- **`open_slack_channel` gives back a channel that already exists.** Somebody ran
5454
this before, or the deal reopened and closed again. Use it. Do not invent a
5555
second name to get a fresh channel.
56-
- **`invited: false` with a reason.** Read the reason. "Slack is not connected"
57-
and "this workspace does not allow it" both need a person, and neither is
58-
fixed by trying again.
56+
- **`invite_to_slack_channel` gives back a `refused` list.** Some addresses went
57+
and some did not. `invited` holds the ones that went; `refused` holds an entry
58+
per address, each with the address and a `reason`. Read every reason. "Slack is
59+
not connected" and "This workspace doesn't let Comp AI send that invitation"
60+
both need a person, and neither is fixed by trying again. Carry on with the
61+
people in `invited`, and say plainly who is still outside and why.
62+
- **`invite_to_slack_channel` fails outright.** Slack refused every address, so
63+
the tool errors instead of returning, and the error text is those same reasons.
64+
Nobody is in the channel. Do not retry a refusal a person has to clear.
5965
- **`watching: false`.** This run already watches a different channel, so replies
6066
in the new one will never reach you. Say so plainly rather than waiting for a
6167
message that cannot arrive.

0 commit comments

Comments
 (0)