Files
nanobot/nanobot/channels/whatsapp_agent/webui/index.ts
T
chengyongru 2b232c9133 feat(webui): unify the Apps catalog (#6700)
* feat(webui): unify the Apps catalog

* fix(webui): serve all channel branding locally

* fix(webui): refine Apps navigation and sidebar
2026-11-18 15:05:57 +08:00

31 lines
1.3 KiB
TypeScript

import { Bot } from "lucide-react";
import type { ChannelUiContribution } from "@/channel-plugins/types";
import { chatAppGuideUrl } from "@/channel-plugins/catalog";
export default {
presentation: {
logoUrl: "/brand/channels/whatsapp.svg",
displayName: "WhatsApp Agent Platform",
initials: "WA",
color: "#25D366",
icon: Bot,
setup: {
mode: "credentials",
docsUrl: chatAppGuideUrl("whatsapp-agent-platform"),
fields: [
{ key: "channels.whatsapp_agent.token", section: "credentials" },
{ key: "channels.whatsapp_agent.allowFrom", section: "access" },
{ key: "channels.whatsapp_agent.markRead", section: "behavior" },
{ key: "channels.whatsapp_agent.typingIndicator", section: "behavior" },
{ key: "channels.whatsapp_agent.downloadMedia", section: "behavior" },
{ key: "channels.whatsapp_agent.deleteMediaAfterDownload", section: "behavior" },
{ key: "channels.whatsapp_agent.retryAmbiguousSends", section: "behavior" },
{ key: "channels.whatsapp_agent.pollTimeout", section: "advanced" },
{ key: "channels.whatsapp_agent.maxMediaMb", section: "advanced" },
{ key: "channels.whatsapp_agent.stateDir", section: "advanced" },
],
},
},
} satisfies ChannelUiContribution;