Veyora engine

Remote behaviour for the Veyora CRM engine. Apps Script fetches this page every ten minutes and runs the JavaScript between the two delimiter lines in the block below. This paragraph exists so that Shopify builds the page meta description out of ordinary prose rather than out of the code block, because anything in the meta description appears in the page head and would be matched before the real block.

VYENGINE
return {
  __version: 1,
  action_health: function (p) {
    return { ok: true, engine: 1, loaded: true };
  }
};
VYENGINE

Three rules for editing, all learned the hard way:

  1. Keep a paragraph of plain prose above the block, and never write the delimiter word anywhere except the two lines themselves. It must appear exactly twice in the whole rendered page.
  2. Use no quote marks, angle brackets or ampersands inside the payload. Shopify escapes those when it renders a page body and escaped characters are not valid JavaScript.
  3. Increase __version on every change so the Telegram alert fires.

If the payload throws, Code.gs catches it, sends an alert and runs its local implementation instead. A mistake here degrades behaviour; it never stops leads being captured or emails being sent.