Flask Bedrock Template Walkthrough
Liat Hoffman
37 steps
3 minutes
Devopser
1
Navigate to your dev, staging or production application URL.
2
Click "Sign Up"
3
Input your email, name and a secure password.
4
Click "Sign Up"
5
If your email is already added an an admin user, you will see the email already exists in the database. Otherwise you will be sent a verification email - click the link to proceed with MFA setup.
6
If you try to log in with an unverified user (including an admin user), you will be prompted to verify your email.
7
Click "Need a new verification email?" to trigger a new email.
8
Input your email address and click "Resend Verification Email"
9
After you have verified the email, you should be able to log in.
10
Set up MFA - I use Microsoft Authenticator but you can use any compatible authenticator application.
11
After you set up the authenticator and enter the code, click "Verify and Enable 2FA"
12
Save your backup codes.
13
Click "Continue to Chat"
14
To chat with Bedrock (using Clause Sonnet 3.5 v2), type a message into the input box.
15
The AI output should come out formatted in markdown.
16
To save the chat to history, click "clear" or "new chat"
17
You will see saved chats in the side bar.
18
For a temporary chat, you toggle this button.
19
Even if you click "clear" or "new chat" the conversation wont be saved in history.
20
To see the account view, click "Account"
21
The template comes with Security Settings pre-set up - the subscription management will be something you need to set up with your own payment provider per their documentation.
22
To navigate to the Flask Admin panel, click "Admin"
23
The Admin panel is mocked up as an example but it is fully configurable to your application management needs.
24
For example, click "User Management"
25
Click "Users"
26
You can see all your current users.
27
You can add users. Click "Create"
28
Input the user's details
29
You can click the "Email Verified" field to "True" if you want the user to skip verification step.
30
Make sure you give the user a password.
31
Click this button to save the user.
32
You can see it completed successfully, and the user is now added to the database.
33
Click "Subscriptions"
34
This is just a default schema for subscriptions - please check your payment provider's documentation to understand what is needed.
35
To get back to the chat interface, click "Home"
36
Click "Return to Chat"
37
Click "Sign Out".