Email Order Capture

ai

Version 1.0.0


Overview

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

Setup Guide
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.
Capabilities

worker

Get Started with Email Order Capture

Ready to add this integration to your Webito store? Enable it instantly from your dashboard.

Get Started