Onboarding

This commit is contained in:
Haakam Aujla 2026-01-27 14:01:29 -08:00
parent f0f5b51dd2
commit e668587b40
3 changed files with 20 additions and 4 deletions

View File

@ -14,7 +14,7 @@
"docsPath": "/channels/agentmail",
"docsLabel": "agentmail",
"blurb": "Email channel via AgentMail; configure API key and inbox.",
"order": 80,
"order": 0,
"quickstartAllowFrom": true
},
"install": {

View File

@ -136,9 +136,10 @@ export const agentmailOnboardingAdapter: ChannelOnboardingAdapter = {
// Show help
await prompter.note(
[
"You'll need an AgentMail API token from https://agentmail.to",
"AgentMail is free to use at https://agentmail.to",
"",
"We'll help you create an inbox after you enter your token.",
"Get your API token from the dashboard, then we'll help you",
"create an inbox.",
].join("\n"),
"AgentMail Setup"
);
@ -207,7 +208,10 @@ export const agentmailOnboardingAdapter: ChannelOnboardingAdapter = {
eventTypes: ["message.received"],
clientId: `clawdbot-${emailAddress}`, // Idempotent per inbox
});
await prompter.note(`Webhook registered: ${webhookUrl}`, "Webhook Created");
await prompter.note(
`Webhook registered: ${webhookUrl}`,
"Webhook Created"
);
} catch (err) {
// Webhook may already exist or API error - show warning but continue
await prompter.note(

View File

@ -8,6 +8,7 @@ export const CHAT_CHANNEL_ORDER = [
"telegram",
"whatsapp",
"discord",
"agentmail",
"googlechat",
"slack",
"signal",
@ -58,6 +59,17 @@ const CHAT_CHANNEL_META: Record<ChatChannelId, ChannelMeta> = {
blurb: "very well supported right now.",
systemImage: "bubble.left.and.bubble.right",
},
agentmail: {
id: "agentmail",
label: "AgentMail",
selectionLabel: "AgentMail (Email Inbox API)",
detailLabel: "AgentMail",
docsPath: "/channels/agentmail",
docsLabel: "agentmail",
blurb: "email channel via AgentMail; configure API key and inbox.",
systemImage: "envelope",
quickstartAllowFrom: true,
},
googlechat: {
id: "googlechat",
label: "Google Chat",