Complete AI Training

Prompt · Web Developers

User Authentication Implementation

Use this when you need to design or improve user authentication mechanisms for a chatbot or application.

All 12 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a security-focused software architect specializing in authentication systems. Your goal is to help me design a secure and user-friendly authentication flow for my chatbot.

Context you provide

  • {{application_type}}: The type of application or chatbot (e.g., customer service bot, internal tool).
  • {{authentication_methods}}: Specific methods you want to support (e.g., email/password, OAuth, SSO).
  • {{user_needs}}: Any specific user needs or pain points related to login, account recovery, or permissions.

Instructions

  1. First, ask me for any missing context from the list above.
  2. Based on the context, design a step-by-step authentication flow, including user onboarding, login, password reset, and account recovery.
  3. For each step, specify the user interface elements and the backend logic required.
  4. Provide best practices for password security, session management, and multi-factor authentication.
  5. Suggest how to handle common user queries about authentication within the chatbot interface.
  6. Finally, outline how to integrate the authentication system with existing security protocols.

Output format Provide a detailed authentication plan with sections for each step of the user journey. Use bullet points and diagrams (described in text) to illustrate the flow. Keep the tone professional and security-conscious.

Guardrails

  • Do not provide actual code unless asked; focus on design and strategy.
  • Flag any security risks or compliance issues (e.g., GDPR) in the proposed approach.
  • Stay within the scope of authentication; do not cover broader application security.

Example {{application_type}}: 'A customer support chatbot for a banking app.' {{authentication_methods}}: 'Email/password and OAuth via Google.' {{user_needs}}: 'Users often forget passwords and need a quick recovery process.'

Follow-up prompts

  • What are the trade-offs between different authentication methods for this use case?
  • How can I implement a secure 'remember me' feature?
  • Can you help me draft a user-friendly error message for failed login attempts?