It's Party(Rock) time: Let's build an app in a few clicks!!
Tags: aws, partyrockplayground, awsbedrock, generativeai
Published: 2023-11-16 17:22:35

PartyRock, an Amazon Bedrock Playground, is a generative AI app building playground. It is built to help us experiment hands-on with prompt engineering in an easy way. And let me tell you, it's a lot of fun too! Just a few clicks and we have built an app to play with generative AI in a variety of ways.

Anyone can access PartyRock through its simple web-based UI, which is separate from the AWS console and does not even require an AWS account to get started. PartyRock provides every new user with free trial usage for a limited time and there is no credit card required to sign up.

So let's use this opportunity and get started!
When we open the [URL](https://partyrock.aws/), we will land into the PartyRock console. We need to login and proceed.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wm79u9tv7p9kkijf7s24.png)


Let's click on "Build your own app".


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ymvaav7zc00hdbmyzg3n.png)


I wanted to create a daily diet plan for my friend who is currently pregnant.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/efdtm4udzb3g1urgvaf0.png)


Next, you will be taken to the app creation page, where you have to give the inputs required and you can select the various widgets you want in your app.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sy4a245dc5xbos5w95h8.png)


In the User Input, we have to give some details, whatever we wish to. I gave the name, age and stage of pregnancy.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eext619wvym4erab23v8.png)


As soon as I gave the input, PartyRock started generating results as "Diet Recommendations".


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hfs4395gk4twsvjau69k.png)


The following is the recommendations generated by PartyRock -

```
Here is a suggested healthy, balanced daily diet plan for Tabitha, a 30 year old woman who is 22 weeks pregnant:

Breakfast:
- 1 cup Greek yogurt with 1/2 cup berries and 1 tbsp chia seeds
- 1 slice whole grain toast with 1 tbsp natural peanut butter
- 1 cup green tea

Mid-morning Snack: 
- 1 medium apple with 1 oz cheddar cheese

Lunch:
- Tuna salad sandwich on whole wheat bread with lettuce, tomato, avocado
- 1 cup vegetable soup 
- 1 cup skim milk

Afternoon Snack:
- 1 oz mixed nuts
- 1 cup carrots and celery sticks with 2 tbsp hummus

Dinner: 
- 4 oz grilled salmon with lemon
- 1 cup cooked brown rice
- 1 cup steamed broccoli  
- Side salad with vinaigrette dressing

Evening Snack:
- 1 cup low-fat cottage cheese
- 1/2 whole wheat English muffin
- 8 oz decaf green tea

Key nutrition focuses for a pregnant woman are getting enough protein, omega-3s, iron, folate, calcium, fiber and fluids. This meal plan incorporates lean proteins, complex carbs, healthy fats, fruits, vegetables, dairy, nuts and seeds to help meet nutritional needs for pregnancy. Tabitha should focus on eating until satisfied, not overly full. She should also stay well hydrated by sipping water throughout the day. Light exercises like walking are also recommended during pregnancy. Consulting with an OBGYN or dietitian can help personalize and adjust this meal plan as needed.
```



Smart, right? 

There's a Feedback widget added automatically, where as I asked questions, it gave replies instantaneously.



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e7nhzpdfxb2c5f909zm8.png)



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iz92bfjexmlq68llf9dm.png)


Next I wanted to explore more. I wanted to add more widgets to my app.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zgp8npaupl4curbvqmyn.png)


There are few options available. Let's select the Image Generation and see what's in store!


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9yrnx69in40h7q0l2t6g.png)


So we can use the User input and create the image. We can make changes to the user input and the simultaneous image will be updated. For example, as I asked to generate a cartoon image of the user input i.e. a pregnant lady, PartyRock generated the following image.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ge1nrskp256j80jpnceo.png)


Isn't it cool!! It's that easy!!
We can create as many images as we wish to by changing the inputs.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ew2bzdpn9x2zl6jpluz2.png)


We can add a Chatbot too with our desired settings.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l6sdbi0m9ppl712thyfr.png)


Thus, in this fun way, we have actually created a cool app, which can be improvised more and more. 

There are two modes of the apps we create - Private or Public. If we select the private mode, the app will remain private. But if we select the public mode, the app can be shared with anyone and can be accessed by them through the link.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yuyv1ih7b6oon62vwkrq.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4mjuafqld9wo8tbdl0dr.png)


Thus my app is public now, and can be accessed through this [link](https://partyrock.aws/u/AM/Ve4o5xuhB/Pregnancy-Diet-Planner).

Out of interest I have created another app to help my diabetic dad with his diet. _(Don't know why I am creating apps for diet plans though!)_. You can have a look at that app too [here](https://partyrock.aws/u/AM/6JY3bch4s/Diabetes-Diet-Assistant).


My dashboard currently looks like this.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hbuvflj0sv7zi1a5wyhv.png)


---

AWS is providing a free trial period for PartyRock users. Let's use this opportunity and get creative!

Thus, let's dive into the world of generative AI app building with this smart Amazon Bedrock Playground - **PartyRock**!!! 

> "Everyone can build AI apps with PartyRock, an Amazon Bedrock Playground"

---