Have Fun with AWS PartyRock
Tags: aws, ai, cdk, partyrock
Published: 2023-11-21 01:35:39

Hello folks, hope you are well 👋

Amazon recently launched PartyRock. It's really fun to play with and at the same time also opens up opportunities for everyone to create apps and experiment with LLMs. This includes experimenting with various foundational models, understanding text-based prompting, and learning how to effectively chain prompts.

In a nutshell, it lets you build AI-generated apps in a Playground powered by [Amazon Bedrock](https://aws.amazon.com/de/bedrock/). Just go to [https://partyrock.aws/](https://partyrock.aws/) and create your own funny apps, based on prompt engineering, and share them with the world.

## Background

PartyRock provides you with a Playground, where you can drag and drop widgets like:

- user input
- static text
- AI-powered: text generation, image and chatbot 🚀

You can think of the Playground as a list of functions (Widgets) backed up by Prompts. Every function produces results via prompt engineering, and these results can be concatenated throughout the entire setup via a dynamic variables chain.

Here in the example, the value of the User-Input Widget is included in the Prompt of the second Widget below. See also how the output is populated via variables to the second prompt.

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

## Use Case

Let's say you want to build an app that analyzes your business requirements and conducts automatic EventStorming sessions. Based on the results, it generates the domain objects and a fully working serverless architecture with CDK code. 🙂

Just hit the [landing page](https://partyrock.aws/) and describe your idea:


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

**Here we go, you can find the app here:**

[https://partyrock.aws/u/odemis/TqzflOT9e/EventStormServerless
](https://partyrock.aws/u/odemis/TqzflOT9e/EventStormServerless
)

## Play with it

Enter your business requirement in **User Input-Widget** e.g:

"_A logistics company wants to improve its fleet management through a smart system that optimizes routes, tracks vehicle status, and manages deliveries. The system aims to enhance operational efficiency, reduce fuel consumption, and ensure timely deliveries._"


**The Output:**

- Generates your domain events.
- Produces the CDK Code, including components like Lambda, EventBridge, DynamoDB, etc.


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

The CDK code comments out certain parts, but you can go deeper into specific implementation details in the next step via the **Technology Wizard**. For instance, if you wish to view details about the implementation of the generated lambdas, simply enter the name, and the output will be displayed in the next **Component Widget**. 👇🏽

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

You can also add new widgets, edit an existing widget, and play with the prompt, mode, and temperature settings.


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

Happy coding 🥳