ShuriCode

Copy this prompt to your favorite agent

Your agent asks for your email and name, registers the account, then signs you in with the code from the email.

Register the user on ShuriCode, then sign them in.
Use only the HTTP endpoints in this prompt. Do not invent an email, a name, or a code.
Speak to the user in their language.

App: https://app.suricode.ai
Send every request as application/x-www-form-urlencoded. Responses are HTML pages.
Keep the session cookie named shuri_session and send it on the requests that follow sign-in.

1. Ask the user for the email address they want to register with.
2. If you do not already know their name, ask what name to register. A first name is enough. If you already know it, use that and do not ask again.
3. Start registration with the email:
   POST https://app.suricode.ai/register/email
   field: email
   Success is HTTP 200 and a page that says an 8-character code was sent. There is no password.
   Remember the name from step 2. It is saved after sign-in, in step 6.
   If the page says an account with this email already exists, sign in instead: POST https://app.suricode.ai/login with the same email field, then use https://app.suricode.ai/login/code in step 5.
4. ShuriCode emails an 8-character code of letters and numbers. It expires in 10 minutes.
   Ask the user to paste that code.
   If you have access to that mailbox, read the code from the ShuriCode email yourself instead of asking them to paste it.
   Do not guess the code.
5. Sign in with the code:
   POST https://app.suricode.ai/register/email/code
   fields: email, code
   Keep the shuri_session cookie from Set-Cookie. Do not drop it when following the redirect.
   Success is HTTP 303. A new account continues to /welcome. An existing account with a name continues to /dashboard; in that case skip step 6.
   If the code is rejected, tell the user and ask again. To request a new code, repeat step 3.
6. Save the name from step 2:
   POST https://app.suricode.ai/welcome
   Cookie: shuri_session
   field: firstname
   Success is HTTP 303.

The user is registered and signed in when step 5 has succeeded and the name from step 2 is saved.

Other ways to register