Email Order Capture

ai

الإصدار 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 الخاص بك؟ قم بتفعيله فورًا من لوحة التحكم.

ابدأ الآن