Onboarding
This commit is contained in:
parent
f0f5b51dd2
commit
e668587b40
@ -14,7 +14,7 @@
|
|||||||
"docsPath": "/channels/agentmail",
|
"docsPath": "/channels/agentmail",
|
||||||
"docsLabel": "agentmail",
|
"docsLabel": "agentmail",
|
||||||
"blurb": "Email channel via AgentMail; configure API key and inbox.",
|
"blurb": "Email channel via AgentMail; configure API key and inbox.",
|
||||||
"order": 80,
|
"order": 0,
|
||||||
"quickstartAllowFrom": true
|
"quickstartAllowFrom": true
|
||||||
},
|
},
|
||||||
"install": {
|
"install": {
|
||||||
|
|||||||
@ -136,9 +136,10 @@ export const agentmailOnboardingAdapter: ChannelOnboardingAdapter = {
|
|||||||
// Show help
|
// Show help
|
||||||
await prompter.note(
|
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"),
|
].join("\n"),
|
||||||
"AgentMail Setup"
|
"AgentMail Setup"
|
||||||
);
|
);
|
||||||
@ -207,7 +208,10 @@ export const agentmailOnboardingAdapter: ChannelOnboardingAdapter = {
|
|||||||
eventTypes: ["message.received"],
|
eventTypes: ["message.received"],
|
||||||
clientId: `clawdbot-${emailAddress}`, // Idempotent per inbox
|
clientId: `clawdbot-${emailAddress}`, // Idempotent per inbox
|
||||||
});
|
});
|
||||||
await prompter.note(`Webhook registered: ${webhookUrl}`, "Webhook Created");
|
await prompter.note(
|
||||||
|
`Webhook registered: ${webhookUrl}`,
|
||||||
|
"Webhook Created"
|
||||||
|
);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// Webhook may already exist or API error - show warning but continue
|
// Webhook may already exist or API error - show warning but continue
|
||||||
await prompter.note(
|
await prompter.note(
|
||||||
|
|||||||
@ -8,6 +8,7 @@ export const CHAT_CHANNEL_ORDER = [
|
|||||||
"telegram",
|
"telegram",
|
||||||
"whatsapp",
|
"whatsapp",
|
||||||
"discord",
|
"discord",
|
||||||
|
"agentmail",
|
||||||
"googlechat",
|
"googlechat",
|
||||||
"slack",
|
"slack",
|
||||||
"signal",
|
"signal",
|
||||||
@ -58,6 +59,17 @@ const CHAT_CHANNEL_META: Record<ChatChannelId, ChannelMeta> = {
|
|||||||
blurb: "very well supported right now.",
|
blurb: "very well supported right now.",
|
||||||
systemImage: "bubble.left.and.bubble.right",
|
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: {
|
googlechat: {
|
||||||
id: "googlechat",
|
id: "googlechat",
|
||||||
label: "Google Chat",
|
label: "Google Chat",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user