Inspiration

We were thinking for a while, what is fun little problem that happens to us quite often. See, often after a long day, we like to have a glass of beer with our friends and we want to have a specific brand for a drink, but we can't always easily find pub/bar where they have that beer on draft. It's quite difficult for regular user to through surface internet find such information since some establishments put that information on their websites, some on google maps or some don't bother to put it anywhere. We thought to ourselves that surely only AI could probably access that information from so many sources so fast. So we decided to make web application powered by AI that helps user find pubs that serve their preferred beverages, while also helping them compare prices and help them find beer that suits their taste.

What it does

The user is able through plain text what profile does he wants his beer have (such as color, type or percentage of alcohol) and then AI agent shall process his beer profile and the user will then being able to choose from variety of beers that should match his profile taste or in the case that he just types its name it can find based on the name. Then, the app will send out an AI prompt through gpt-4.1-mini model which then shall return list of pubs, their address, the price for a large glass of the said beer, other beer that the pub has on tap and link to the Google Maps for the pub. The web is of course full responsive and it also has few languages to choose from.

How we built it

The heart of it all is a PHP backbone that has html code but also PHP server side logistics, such as getting language from GET. It also servers as a connection between JS scripts and CSS styles. The prompts are being executed by PHP script which than outputs a formatted JSON string which is then processed by the web application. We also used AI, which used a prompt in a code we made according to user's input. E.g. light beer, dark beer etc.

Challenges we ran into

The biggest and most detrimental problem we encountered, which pretty much makes our project fall flat is that we failed to connect the AI communication scripts with our frontend and we ended up with empty frontend demo and a script for prompting AI. Luckily we were able to eventually solve all of our problems.

Accomplishments that we're proud of

Even though our final output of this weekend doesn't quite match our expectations, we think that did quite well for complete beginners working with AI and even though our frontend's empty it's quite functional.

Built With

Share this project:

Updates