Loading...
Loading...
Use whenever you need an email address to receive something and then read or wait for it, especially during a signup or login flow. PROACTIVELY, and you can usually do this without asking the user first: a service is about to send a verification code, OTP, one-time code, 2FA or two-factor code, confirmation link, magic link, or password reset and you need to wait for it and read the value out; you are signing up for or registering with a service and must confirm an email address to continue; you need a fresh, managed, throwaway, or burner address instead of using a real one; you sent something and need to watch for what lands. REACTIVELY: the user asks "did it arrive?", "check the inbox", "what came in?", "wait for the email", or wants an address to catch replies, codes, receipts, or alerts. Provides a managed `*.primitive.email` address plus `primitive emails latest` and `primitive emails wait` to read and block for mail, and hosted Functions to run JavaScript on every inbound message. No SMTP, no DNS, no mail server. Use this when a third party sends mail TO you; to send your own message and wait for its reply, use the primitive-chat skill. Gets a free `*.primitive.email` address via `primitive agent start-agent-signup` if you do not already have one. Part of the Primitive CLI (Primitive, primitivedotdev, primitive.dev; the `primitive` or `prim` command).
npx skill4agent add primitivedotdev/skills primitive-inbox*.primitive.emailprimitive emails latestprimitive emails waitprimitive functions deploynpm install -g @primitivedotdev/cliprimitive account showprimitive whoamiunauthorized# 1. Start signup (ask which email FIRST, see above).
primitive agent start-agent-signup --email <user-email> --terms-accepted
# Optional: add `--signup-code <code>` ONLY if the user has already, unprompted, said they have one.
# 2. Primitive emails a 6-digit verification code; the start output includes a signup-token.
# Do not have the user paste the code into the chat. Read it through the shell so it
# never enters your prompt:
read -rs CODE
primitive agent verify-agent-signup --verification-code "$CODE" --signup-token <signup-token>
unset CODE--signup-codeprimitive agent resend-agent-signup-verification --signup-token <signup-token>start-agent-signupverify-agent-signupprimitive whoami<random>.primitive.emailprimitive domains list # shows the managed primitive.email domain assigned after verify
primitive inbox setup # guided: shows your receive address and whether inbound is stored-only or actively processed
primitive inbox status # consolidated inbound-readiness view--jsonprimitive emails latest
primitive emails latest --json--table--timeout0--number/-nprimitive emails wait --to <your-address> --number 1 --timeout 120
primitive emails wait --subject verify --number 1 --timeout 120
primitive emails wait --q 'domain:example.com' --tablefunctions initfunctions deploy --name <name> --file ./dist/handler.jsfunctions route-set --id <fn-id> --fallbackemails latestemails wait--json