Email Order Capture

ai

当前 Manifest 版本:1.0.0


概览

AI-powered order capture from email messages. Requires your own OpenRouter API key.

设置指南
1. Get an OpenRouter API key at openrouter.ai/keys and paste it into "OpenRouter API Key" below. 2. Choose a random string for "Webhook Secret" below (anything works, just keep it private) — your forwarding rule must send it back on every request. 3. In Cloudflare (or any provider with Email Routing), create a destination address like [email protected] and route it to a Worker instead of a mailbox. 4. In the Worker, POST the incoming email to the webhook URL shown above, with an X-Webhook-Secret header carrying the value from step 2. Example:
export default {
  async email(message, env) {
    const text = await new Response(message.raw).text();
    await fetch("YOUR_WEBHOOK_URL", {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
        "X-Webhook-Secret": env.WEBHOOK_SECRET,
      },
      body: JSON.stringify({
        from: message.from,
        to: message.to,
        subject: message.headers.get("subject") ?? "",
        text,
      }),
    });
  },
};
5. Any other forwarder that can POST JSON with a custom header works the same way — Cloudflare Workers is just the simplest free option.
功能

worker

开始使用 Email Order Capture

准备好将此集成添加到您的 Webito 商店了吗? 立即从仪表板启用它。

开始