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 }}.
This script polls for up to 30 seconds, so set the JavaScript step’s
Timeout field to at least that. Steps default to 15 seconds (max 60)
and will be killed early if the timeout is left at the default.