Tutorial

Automate eBay Buyer Messages for Free with n8n and the eBay API (vs 3Dsellers)

I was spending 5 to 6 minutes per order on thank-you and shipping messages. I built a free n8n workflow that drafts them from eBay order data, waits for my approval, then sends them. Here's how it works, what went wrong, and when 3Dsellers is the better deal.

Short version: I sell Japanese art books on eBay, and every order got two messages from me by hand: a thank-you with the shipping method, and a shipping notice with the date. Copying the right template and fixing the details took 5 to 6 minutes per order. I built a workflow in a free, self-hosted copy of n8n that reads my orders from the eBay API, writes both messages into a Google Sheet, and sends the ones I approve. The first real order took under a minute from start to sent, including my check. It costs nothing to run, but it took an evening to build, and it only runs while my Mac is on.

3Dsellers Auto MessagesMy n8n workflow
CostFrom $19/month (Essential, monthly billing)Free (n8n on my Mac)
SetupPick a trigger, write the messageAn evening: eBay API keys, two workflows, a Google Sheet
Message rulesA version per buyer countryAny rule you can code: shipping service, country, handling time
Approval stepSends automaticallyI approve each message in a sheet (by choice)
Runs whenAlwaysOnly while my computer is on
Time per order—Under a minute, including my check

3Dsellers pricing as checked in October 2026, from my 3Dsellers review.

The job I wanted gone

Two messages go to every buyer:

  1. Right after purchase: thanks, how long until I ship, and which service I’ll use (“eBay SpeedPAK Economy” or “Japan Post”).
  2. After shipping: the ship date, how long delivery takes, and a reminder that tracking is on eBay.

The text barely changes, but the details do. I had to check the order, pick the right version, fix the shipping service and type the date. At three or four orders on a busy day, that’s 15 to 24 minutes a day.

3Dsellers does this out of the box. In my review I found its Auto Messages on every plan, with triggers such as “order paid” and “order shipped,” and a separate version of each message per buyer country. If you want it working today, that’s the easy answer. I wanted to see whether I could build the same thing for free, and fit my own rules more closely.

How the workflow works

There are two n8n workflows and one Google Sheet:

Workflow 1: create drafts. It calls the eBay Trading API (GetOrders) for the last 10 days of orders. For each order, it writes a thank-you message if the order hasn’t shipped, or a shipping notice if it has. New messages land in the sheet as pending. A key column (order ID + message type) stops the same message from being added twice.

Workflow 2: send. It reads the sheet, picks only rows I’ve changed to approve, sends each one with the eBay API (AddMemberMessageAAQToPartner), and marks the row sent with the time.

The send workflow in n8n: manual trigger, Get rows from Google Sheets, Build message, HTTP Request to eBay, XML, Check result, Update row

I kept the two apart on purpose. Workflow 1 can run as often as I like and never contacts a buyer. Only Workflow 2 sends, and only what I’ve approved.

What you need

  • n8n. I run the free version on my Mac. See how I set it up.
  • eBay developer keys. At developer.eBay.com, under Application Keysets, the Production set gives you an App ID, Dev ID and Cert ID. The User Tokens page next to it issues a token for your seller account. Treat all of these like passwords. I briefly saved mine inside my website’s project folder, which I push to GitHub, and moved them out before committing.
  • A Google Sheet with these columns: key, orderId, itemId, buyerId, type, shippingService, message, status, createdAt, sentAt, error.

Step 1: Read your orders

The first test was just reading data. An HTTP Request node sends a GetOrders call to https://api.ebay.com/ws/api.dll with the keys in the headers and the token in the XML body. An XML node turns the reply into JSON, and a Code node keeps only what I need. The raw reply includes buyer names and addresses, so I never screenshot it.

n8n output listing four recent orders with their shipping service, country and ship time

That table told me something I needed: the buyer’s chosen shipping service comes through as names like US_EconomySppedPAK and US_IntlExpeditedSppedPAK. (Yes, eBay spells it “Spped.”) It also showed that ship times come in UTC. Japan is nine hours ahead, so anything I ship before 9 a.m. would carry the previous day’s date unless I convert it to Japan time.

Step 2: Turn order data into messages

The Code node fills three details into my existing templates.

Shipping service. Economy SpeedPAK becomes “eBay SpeedPAK Economy,” Expedited becomes “eBay SpeedPAK Expedited.” My first real order showed that wasn’t enough: SpeedPAK Economy only covers some countries (for me: the US, UK, Australia and the 27 EU countries). So if a buyer picks Economy SpeedPAK from anywhere else, the message says Japan Post instead. An unknown service name gets the status review and isn’t sent.

Handling time. My listings promise shipping within either 3 or 7 business days. The order data doesn’t include that setting, but it does include the ship-by date. The code counts business days from payment to ship-by: more than 5 means a 7-day listing.

Ship date. The shipping notice uses the ship time from eBay, converted to Japan time (“November 20th”).

The full Code node for Workflow 1
// n8n Code node (JavaScript, Run Once for All Items) — "eBay messages 1 - create drafts"
// Input: XML node (GetOrdersResponse). Needs a node named "Get row(s) in sheet" (queue tab).
const SELLER_NAME = 'YOUR_NAME';

// eBay SpeedPAK Economy の対応国:米国・イギリス・オーストラリア・EU 27か国
const SPEEDPAK_ECONOMY_COUNTRIES = ['US','GB','AU',
  'AT','BE','BG','HR','CY','CZ','DK','EE','FI','FR','DE','GR','HU','IE',
  'IT','LV','LT','LU','MT','NL','PL','PT','RO','SK','SI','ES','SE'];
// 例外:対応国でも日本郵便で送る国(なければ [] のまま)
const JAPAN_POST_COUNTRIES = [];
const JAPAN_POST_LABEL = 'Japan Post International Air Packet';

function serviceLabel(s) {
  if (/Economy.*(SppedPAK|SpeedPAK)/i.test(s)) return 'eBay SpeedPAK Economy';
  if (/Expedited.*(SppedPAK|SpeedPAK)/i.test(s)) return 'eBay SpeedPAK Expedited';
  if (/Japan|JP_|EMS|ePacket|Airmail|SAL/i.test(s)) return JAPAN_POST_LABEL;
  return null; // 知らない発送方法 → review
}
function jstDate(iso) {
  const d = new Date(new Date(iso).getTime() + 9 * 3600e3);
  const m = ['January','February','March','April','May','June','July','August','September','October','November','December'];
  const n = d.getUTCDate(), v = n % 100, s = ['th','st','nd','rd'];
  return `${m[d.getUTCMonth()]} ${n}${s[(v - 20) % 10] || s[v] || s[0]}`;
}
function bizDays(fromIso, toIso) {
  const d = new Date(new Date(fromIso).getTime() + 9 * 3600e3);
  const end = new Date(new Date(toIso).getTime() + 9 * 3600e3);
  d.setUTCHours(0, 0, 0, 0); end.setUTCHours(0, 0, 0, 0);
  let n = 0;
  while (d < end) { d.setUTCDate(d.getUTCDate() + 1); const w = d.getUTCDay(); if (w !== 0 && w !== 6) n++; }
  return n;
}
const first = x => Array.isArray(x) ? x[0] : x;
const nowJst = new Date(Date.now() + 9 * 3600e3).toISOString().replace('T', ' ').slice(0, 16);

// すでにシートにある key(二重登録を防ぐ)
const existing = new Set($('Get row(s) in sheet').all().map(i => i.json.key).filter(Boolean));

const out = [];
for (const item of $input.all()) {
  const r = item.json.GetOrdersResponse || item.json.data?.GetOrdersResponse || {};
  const orders = r.OrderArray?.Order;
  const list = Array.isArray(orders) ? orders : (orders ? [orders] : []);
  for (const o of list) {
    const t = first(o.TransactionArray?.Transaction);
    const country = o.ShippingAddress?.Country || '';
    const base = {
      orderId: o.OrderID,
      itemId: t?.Item?.ItemID || '',
      buyerId: o.BuyerUserID || '',
      shippingService: o.ShippingServiceSelected?.ShippingService || '',
      sentAt: '', error: '', createdAt: nowJst,
    };

    // 発送方法の表記
    let label = serviceLabel(base.shippingService);
    if (label === 'eBay SpeedPAK Economy' && !SPEEDPAK_ECONOMY_COUNTRIES.includes(country)) label = JAPAN_POST_LABEL;
    if (JAPAN_POST_COUNTRIES.includes(country)) label = JAPAN_POST_LABEL;

    // 発送までの日数(支払日〜発送期限の営業日数で 3 か 7 を判定)
    const spi = first(o.ShippingServiceSelected?.ShippingPackageInfo) || first(t?.ShippingServiceSelected?.ShippingPackageInfo);
    const start = o.PaidTime || o.CreatedTime;
    const days = (spi?.HandleByTime && start) ? bizDays(start, spi.HandleByTime) : 0;
    const shipLine = `The item will typically be shipped within ${days > 5 ? 7 : 3} business days.`;

    // 購入お礼:まだ発送していない注文だけ
    if (!o.ShippedTime && !existing.has(`${o.OrderID}_thanks`)) {
      out.push({ json: { key: `${o.OrderID}_thanks`, ...base, type: 'thanks',
        status: label ? 'pending' : 'review',
        message: label ? [
          'Hello,',
          'Thank you for purchasing from among the many stores available!',
          `This is ${SELLER_NAME} from yokohama_frameworks_japan.`,
          shipLine,
          `Your order will be shipped via ${label}.`,
          'Once the shipment is complete, I will provide you with the tracking number.',
          'If there is anything else I can assist you with, please feel free to contact me.',
          'Best regards,',
        ].join('\n') : '' } });
    }

    // 発送連絡:発送済みの注文
    if (o.ShippedTime && !existing.has(`${o.OrderID}_shipped`)) {
      out.push({ json: { key: `${o.OrderID}_shipped`, ...base, type: 'shipped', status: 'pending',
        message: [
          'Hello.',
          `We shipped your item ${jstDate(o.ShippedTime)}.`,
          'Please expect it to take up to 1-2 weeks for your order to arrive.',
          'Please note that customs clearance may take some time at this time.',
          'Please check the tracking number uploaded on eBay.',
          'If you have any problems with the item after it arrives, please contact us anytime.',
          'If there are any other items you would like to see, please let us know your thoughts.',
          'Thank you!',
        ].join('\n') } });
    }
  }
}

// 同じ実行の中での重複も取り除く
const seen = new Set();
return out.filter(i => !seen.has(i.json.key) && seen.add(i.json.key));

Step 3: Approve and send

The sheet becomes a small outbox. I read the message, change pending to approve, and run Workflow 2. Its HTTP Request node builds the eBay call from each approved row:

<AddMemberMessageAAQToPartnerRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <RequesterCredentials><eBayAuthToken>YOUR_TOKEN</eBayAuthToken></RequesterCredentials>
  <ItemID>{{ $json.itemId }}</ItemID>
  <MemberMessage>
    <Subject>{{ $json.subject }}</Subject>
    <Body>{{ $json.body }}</Body>
    <QuestionType>{{ $json.questionType }}</QuestionType>
    <RecipientID>{{ $json.buyerId }}</RecipientID>
  </MemberMessage>
</AddMemberMessageAAQToPartnerRequest>

A few limits from eBay’s documentation worth knowing: you can message an order partner for up to 90 days after the order, the body is limited to 2,000 characters with no HTML, and there’s no Sandbox for this call. (eBay Developers) That last one is why I start with approvals: the first test is always a real buyer.

The queue sheet after sending: the thank-you row now shows status sent and the time it was sent

The results

The first real order came in on November 16. Workflow 1, a read in the sheet, approve, Workflow 2: under a minute, compared with 5 to 6 minutes by hand. The message arrived in eBay with its line breaks intact:

The thank-you message as sent in eBay Messages, with the 7-business-day handling time and eBay SpeedPAK Economy filled in

When I shipped the order on November 20, the same steps produced the shipping notice with the right date:

The shipping notice in eBay Messages: We shipped your item November 20th

What went wrong along the way

The same message, three times. On the first real order, one run of Workflow 1 added three identical thank-you rows. A setting on the HTTP Request node (Execute Once) was off, so it called eBay once for each row already in the sheet. My duplicate check only looked at rows already saved, not at rows created in the same run. I turned the setting on and added a second check in the code. Because nothing sends without approval, the buyer never knew. This is the best argument I have for keeping the approval step while you build.

Google disconnected after exactly 7 days. Self-hosted n8n connects to Google Sheets through your own Google Cloud app. Left in “Testing” mode, Google expires that connection after 7 days, and it did, mid-build. Publishing the app to “In production” (after filling in the app’s home page and privacy policy) and reconnecting has kept it working since. A reader suggested this on Threads.

The shipping service wasn’t the whole story. I assumed the service name would decide the message. It took a real order to show that the buyer’s country matters too. Funnily enough, that’s exactly the rule 3Dsellers is built around.

So, build it or pay for 3Dsellers?

Pay for 3Dsellers if you want this working tonight, your messages only need to change by country, or you need it running when your computer is off. You’ll also get the feedback reminders, offers and listing tools, which matter more once your order count grows.

Build it if you’re already using n8n, your rules are specific (mine depend on the shipping service, the country and two handling times), and you’re comfortable checking a sheet before anything goes out. It’s free, and every rule is yours to change.

For me, at a few orders a day, the free version wins. The approval step costs me a few seconds per order and has already saved me from one embarrassing mistake.

Next step: once I trust it fully, I’ll put both workflows on a 30-minute schedule and drop the approval step. I’ll update this article when I do.

Related: n8n vs Make for eBay listing drafts · Run n8n free on your Mac · 3Dsellers review