Skip to main content

Documentation Index

Fetch the complete documentation index at: https://momentic.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Prerequisite: A Momentic-provisioned inbox. Request one.

Fetch and navigate

const msg = await email.fetchLatest({
  inbox: "link+test",
  afterDate: new Date(Date.now() - 60_000),
  timeout: 30_000,
});

const [link] = msg.text.match(/https?:\/\/[^\s]+/) ?? [];
if (!link) throw new Error("No verification link found in email");
setVariable("VERIFICATION_LINK", link);
Then add a Navigate step with URL {{ env.VERIFICATION_LINK }}.