Roadblock: your n8n Function node keeps throwing "items is not iterable" or outputs nothing. n8n wants an array of { json } objects — this template converts any plain array correctly.
// n8n Function node — the #1 gotcha: you must return [{ json }, ...]
const contacts = [
{ name: "Amy", email: "amy@co.com" },
{ name: "Bob", email: "bob@co.com" },
];
// Wrap every element so downstream nodes can read it:
return contacts.map((c) => ({ json: c }));