DEV Community

Cover image for Superhero Chat - Simulating Conversations with Heroes using AI
Snazzy Coder
Snazzy Coder

Posted on

Superhero Chat - Simulating Conversations with Heroes using AI

Overview of My Submission

For the hackathon, I've created an application, where you could talk with superheroes or people with certain personalities that could be described in words, and they would reply just as they would in real life.

Simply speaking, the AI model trained for the task is perfect for simulating conversations, and

Submission Category:

Wacky Wildcards: Though it uses AI extensively, AI is not just the only part of the project. UI, web app development, etc. are as much of a contributor for the project as for AI, so I would like to place in in this category

Deployment

The app was deployed on azure app service, and uses Azure's OpenAI service

Link to Code on GitHub

GitHub logo SnazzyCoder / superhero-chat

Chat with your favourite superheroes, with the help of AI

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
Enter fullscreen mode Exit fullscreen mode

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.js.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from…

Additional Resources / Info

ScreenShot

Above is a sample screenshot of me talking with Tony Stark using the AI. you could choose from a variety of superheroes, or insert your own one.

For example, you could add Ned (from Holland's Spiderman movies), by entering "Ned Leeds" in the name, and "Energetic high school boy who just got into MIT" in the context section. The AI would then automagically simulate the conversation and reply as Ned on his behalf.

It works wonders.

Useful Links

Top comments (0)