Transforming Generative AI Idea into Reality with AWS PartyRock in Just 20 Minutes

Transforming Generative AI Idea into Reality with AWS PartyRock in Just 20 Minutes

This article described how to use AWS PartyRock to create a trip planner app.

Published Mar 6, 2024
Imagine you’re planning a grand adventure to Las Vegas and the iconic national parks of Arizona and Utah, envisioning a journey filled with the vibrant life of the city and the serene beauty of nature. Yet, the complexity of planning such a diverse trip can be daunting. What if there was a way to streamline this process? What if you could create an application that simplifies planning any trip, where all you need to provide are some basic pieces of information like the destination, the number of days you wish to spend, and your budget?
This is not just a hypothetical scenario anymore. With AWS PartyRock, such an application is not only possible but can be created in a matter of minutes without writing a single line of code. AWS PartyRock, a platform designed to democratize the creation of generative AI applications using Large Language Models (LLMs), enables anyone, regardless of their technical background, to build powerful tools that can tackle complex tasks like trip planning.
The ease of use of AWS PartyRock is one of its most compelling features, making it an accessible tool for individuals of all skill levels. With its simple and intuitive interface, users are guided through the process of creating applications with minimal effort. One of the standout aspects of PartyRock is its built-in models, which significantly streamline the development process. Rather than getting bogged down in the complexities of coding, users can focus on describing their requirements for the app. Whether it’s a trip planning application or any other tool, you simply outline what you need — for instance, a trip planner that considers destinations, duration, and budget — and AWS PartyRock takes care of the rest. It automatically generates a foundational version of the application based on your specifications, ready for you to refine and customize. This revolutionary approach not only saves time but also opens up the world of app development to those who may have been intimidated by the technical barriers of the past. With AWS PartyRock, creating custom applications is no longer a daunting task but an enjoyable and fulfilling experience.

Start with describing your app

You start with describing what you want your app to do.
App Builder
Describe your app
PartyRock automatically create a fully functional app for you. In the app it generated for me, it has three input widgets taking input from user. It has a recommendation widget to show the recommended places and an itinerary widget to show day-by-day itinerary. It also has a chatbot you can talk to it freely.
App is created for you
Let’s give it a test!
The app is fully functional, and the results are impressive! AWS PartyRock adeptly generated prompts tailored to the specific needs of my app, seamlessly integrating the input parameters within these prompts. Additionally, the widget is customizable, allowing modifications to the title, model, prompt, and even the advanced settings to better align with my preferences.
Edit widget
Edit widget
You can also create a widget by clicking “Create Widget”.
Create widget
create widget
Create Widget
Create widget

The Widget

What is a widget?

“A widget is a UI element that you can combine with other widgets to create an app. Widgets display content, take in input, connect to other widgets, and create output. Widgets that take in input allow users to interact with the app. Widgets that create output use prompts and references to other widgets to generate something like an image or text. The widgets that create output in PartyRock are AI-powered. AI-powered widgets are based on foundation models to utilize AI content generation.” — PartyRock Guide

Types of widgets

“There are 3 different types of AI-powered widgets: image generation, chatbot, and text generation. You can edit AI-powered widgets to connect them to other widgets and make their output change.
There are also 2 other widgets: user input and static text. The user input widget allow users to change output when you connect it to AI-powered widgets. The static text widget provides a place for text descriptions.” — PartyRock Guide.

Prompt Engineering

Prompt engineering is key. Prompt engineering has emerged as a crucial skill in the era of generative AI, serving as the bridge between human intent and machine understanding. This discipline involves crafting questions or prompts in a way that guides AI models, like those utilized in AWS PartyRock, to produce desired outcomes with higher precision and relevance. The significance of prompt engineering cannot be overstated, as the quality of the input directly influences the quality of the output. Effective prompts can unlock the full potential of AI, enabling it to generate solutions, ideas, or content that closely aligns with the user’s needs.

A few changes in my App

I chose to enhance the user experience in the trip planner app by incorporating additional input fields such as “number of people,” “time of trip,” and “departure city.” Instead of dividing the plan across two separate widgets, my goal was for the LLM to produce a singular, detailed plan that encompasses multiple aspects, including:
  • Points of interest
  • Detailed itinerary
  • Estimated costs
  • Crucial advice regarding weather, safety, necessary travel documents, parking, currency, and language
  • Recommendations for music and movies related to the destination
Furthermore, I integrated a chatbot feature to provide instant answers to any user inquiries. To ensure the chatbot maintains the context of the conversation, I included all relevant background information and the trip plan generated by the app in its prompt. Lastly, I introduced an image generation widget, designed to create cinematic images based on the “place” and “time of trip” specified, adding a visually engaging element to the planning experience.
Image generated by Stable Diffusion XL model in PartyRock
Image generated by Stable Diffusion XL model in PartyRock
Here’s the trip plan crafted by the App, presented in markdown for a beautifully rendered display within the app.
Here is a comprehensive trip plan for your 7 day trip to Las Vegas and national parks in Utah, NV, and AZ with a budget of $5000 for 4 people in June:
# Trip to Las Vegas and National Parks

## Places to Visit

### Las Vegas
- The Las Vegas Strip — Famous for its hotels, casinos, restaurants, and nightlife. Great place to experience the bright lights of Vegas.

- Fremont Street — Historic downtown area with classic Vegas neon signs. Fun place to explore.

- Red Rock Canyon — Beautiful desert landscape just outside the city. Great for hiking and taking in natural beauty.

### Utah
- Zion National Park — Incredible rock formations and canyon landscapes. Hiking trails with amazing views.

- Bryce Canyon National Park — Famous for its unique geological rock structures. Breathtaking vistas.

- Arches National Park — Home to over 2,000 natural sandstone arches. Striking natural beauty.

### Arizona
- Grand Canyon National Park — The granddaddy of them all. Jaw-dropping views into the massive canyon.

- Antelope Canyon — Stunning and narrow slot canyon famous for its beams of light. Photographer’s paradise.

- Horseshoe Bend — Dramatic horseshoe shaped curve in the Colorado River. Iconic viewpoint.

### Nevada
- Valley of Fire State Park — Bright red Aztec sandstone formations. Great for hiking and photography.

- Lake Mead National Recreation Area — Massive reservoir with opportunities for water sports. Scenic nature.

## Itinerary

Since we have a larger group, I recommend flying to maximize time and reduce driving.

**Day 1** — Fly into Las Vegas. Explore Las Vegas Strip. Overnight in Las Vegas.

**Day 2** — Visit Red Rock Canyon. Drive to Zion National Park. Hike and explore. Overnight near Zion.

**Day 3** — Hike more of Zion. Drive to Bryce Canyon. Overnight near Bryce.

**Day 4** — Explore Bryce Canyon. Drive to Page, AZ. Visit Antelope Canyon. Overnight in Page.

**Day 5** — See Horseshoe Bend. Drive to Grand Canyon. Explore Grand Canyon. Overnight near Grand Canyon.

**Day 6** — More exploring of Grand Canyon. Drive back to Las Vegas. Overnight in Las Vegas.

**Day 7** — Visit Valley of Fire State Park on drive back to Las Vegas. Depart Las Vegas.

## Cost

- Flights: $1000 roundtrip for 4 people
- Rental Car + Gas: $600
- Hotels: $700 total ($100 per night average)
- Park Entry: $280 ($35 per vehicle for 7 days)
- Food: $1200 ($50 per person per day)
- Activities: $500
- Total = Around $5000

## Tips

- June is very hot in the desert. Make sure to drink plenty of water and protect against sun exposure.
- Watch out for wildlife like snakes and scorpions in natural areas.
- Bring good hiking shoes/gear for exploring parks.
- Carry sunscreen, hat, sunglasses for sun protection.
- Some parks may require reservations for camping, hotels, or certain activities. Book in advance.
- Make sure your ID is current as some parks border Arizona state lines.
- US dollars are used in all locations. English is commonly spoken.
- Fill up gas when you see a station since they can be sparse in remote areas.

## Enjoy the Trip

- Make some road trip playlists with classics like “Take It Easy” by The Eagles or “I Love a Rainy Night” by Eddie Rabbitt.
- Queue up national park documentaries like Ken Burns’ The National Parks to get excited about the destinations.
- Sing along to “Viva Las Vegas” by Elvis Presley when arriving in Vegas.
- Don’t forget the snacks! Trail mix, beef jerky, and crackers are great road trip foods.

I hope you have an amazing trip filled with natural beauty and making lasting memories! Wishing you safe travels, good weather, and a rejuvenating time enjoying the great outdoors. Enjoy every sunrise, sunset, and awe-inspiring view.

Community Impact

Trip Planner aims to make trip planning accessible and stress-free for everyone. By personalizing itineraries based on user preferences, budget, and duration, this application can significantly enhance the travel experience, encouraging more people to explore new destinations. Its real-world application lies in promoting tourism and cultural exchange, potentially boosting local economies. Encouraging adoption through travel blogs, partnerships with tourism boards, and social media campaigns can highlight its value in planning memorable, hassle-free trips.

Other Alternatives

Had AWS PartyRock not been available for developing the Trip Planner app, turning to Amazon Bedrock as an alternative would involve a more hands-on approach to leveraging AWS’s suite of services and machine learning capabilities. Amazon Bedrock provides a solid foundation for building apps with LLM, offering flexibility and control over the development process.

See it for yourself

Explore everything firsthand through the following links: