What this section is for
The authentication and onboarding system provides secure access to the admin panel and automatic workspace setup for new users with creation of personalized AI agents based on their website analysis.
System login process
Sign in page (/signin)
Two-step login process for enhanced security and convenience:
Step 1: Email input
- Enter email address in the "Email" field
- Click "Continue with Email" to proceed to the second step
- Alternative login methods:
- "Continue with Google" — login via Google OAuth
- Option to add other social networks
Step 2: Password input
- Email is displayed with edit option ("Edit" button)
- Enter password in the corresponding field
- Click "Sign In" to complete login
- Automatic redirect to the page you came from (if returnUrl exists)
Password recovery
Available on the login page:
- "Forgot Password?" link leads to recovery page
- Process via email with temporary code
- Option to create a new password
New account registration
Registration page (/signup)
Step 1: Data entry
Required fields:
- Email — address for login and communication
- Password — minimum security requirements
- Password confirmation — matching verification
Additional requirements:
- Terms agreement — checkbox with links to Terms of Service and Privacy Policy
- Mandatory to complete registration
Alternative methods:
- "Continue with Google" — registration via Google OAuth
Step 2: Email confirmation
- Code is sent to specified email automatically
- Enter 6-digit code in "Confirmation Code" field
- Click "Confirm" to complete registration
- Automatic login after successful confirmation
Important registration features
- Automatic site detection — system saves information about which site (Agentech/Flutch) the user is registering from
- Immediately after confirmation automatic system login occurs
- Redirect to onboarding for new users without a company
New user onboarding
When onboarding starts
Automatic launch for users who:
- Have completed registration
- Have no associated company (companyId = null)
- User type is not Corporate
Onboarding process (/onboarding)
Stage 1: Company information
3-step progress indicator: Your Info → Setup → Ready
Data entry form:
- Company URL — web address for analysis (required)
- Your role — selection from preset options:
- Founder / CEO
- Product Manager
- Developer
- Marketing
- Sales
- Other
"Continue" button is activated only when all fields are filled.
Stage 2: Automatic setup
Progress indicator: shows current status
Automatic processes:
- Website analysis — studying structure and content
- Creating AI agents — personalized assistants
- Workspace configuration — system setup
- Finalization — completing all settings
Process management:
- "Cancel" button — cancel and return to form
- In development mode — additional control elements
Stage 3: Completion
Successful completion:
- Congratulations screen with confetti animation
- Workspace ready message
- "Explore Your Workspace" button — transition to admin panel
Automatic cleanup of temporary onboarding data.
Technical onboarding implementation
- Stream processing — real-time execution via WebSocket
- State preservation — ability to continue interrupted process
- Onboarding AI agent — special agent analyzes site and creates personalized assistants
- Automatic company creation — no manual input required
Session management
Login state preservation
- JWT tokens via AWS Cognito — secure authentication
- Automatic session renewal on activity
- ReturnUrl preservation — return to original page after login
System logout
- Complete cleanup of tokens and local state
- Redirect to login page after logout
- Secure server-side deauthorization
User types and access rights
Individual users
- Go through full onboarding
- Personal company is created
- Full administrator rights for their workspace
Corporate users
- Skip onboarding — go directly to existing workspace
- Rights determined by company administrator
- Cannot create new companies
Common usage scenarios
Scenario 1: First registration
- Go to
/signup - Fill registration form with email and password
- Agree to terms of use
- Receive confirmation code via email
- Enter code and automatic login
- Automatic onboarding launch
- Enter company URL and role
- Wait for automatic setup
- Enter ready workspace
Scenario 2: Existing user login
- Go to
/signin - Enter email and continue
- Enter password and login
- Direct transition to admin panel (skip onboarding)
Scenario 3: Google login
- On login or registration page
- Click "Continue with Google"
- Authorize in Google OAuth
- For new users: automatic onboarding launch
- For existing users: direct system login
Scenario 4: Password recovery
- On login page click "Forgot Password?"
- Enter email for recovery
- Receive recovery code via email
- Enter code and create new password
- Automatic login with new password
Important limitations
- Mandatory email confirmation — cannot be skipped
- Corporate users don't go through onboarding — directly to admin panel
- One onboarding attempt — cannot be repeated for same user
- Valid URL required — onboarding analyzes real website
- Google OAuth only for login/registration — additional Google API settings
Common problems and solutions
Problem: Confirmation code doesn't arrive
Solutions:
- Check "Spam" folder in email
- Ensure email address is correct
- Wait 2-3 minutes — sometimes there's delay
- Request new code (if option available)
Problem: Onboarding hangs during analysis
Solutions:
- Ensure website URL is accessible and correct
- Check internet connection
- Click "Cancel" and try with different URL
- Contact support if problem persists
Problem: "Already have an account" but password doesn't match
Solutions:
- Use "Forgot Password?" for recovery
- Try Google login if you registered through it
- Ensure email address is correct
- Account might have been created through different method
Problem: Google OAuth doesn't work
Solutions:
- Clear cookies and try again
- Ensure you're not blocking pop-ups
- Check that Google account is active
- Try incognito mode
Problem: After login you end up somewhere unexpected
Solutions:
- Check URL in address bar — returnUrl might be saved
- For new users this is normal — onboarding first
- Corporate users go to company workspace
- Refresh page if something went wrong
Security
Security measures
- AWS Cognito — enterprise-level security
- Two-step authentication — email + password separately
- Automatic session expiration — protection from inactive accounts
- HTTPS only — encrypted data transmission
- Client and server validation — double data verification
Security recommendations
- Use strong passwords — minimum 8 characters, different types
- Don't save passwords in browser on shared computers
- Log out on other people's devices
- Verify URLs — ensure you're on the correct domain
What's next?
After successful authentication and onboarding:
- Explore agent list — see what was created automatically
- Configure agents — personalize for your tasks
- Create knowledge base — add specific information
- Explore dashboard — main interface for work