I engineered a prompt to explain how to engineer a prompt.
It explains what prompt engineering is in five levels of complexity (for a 7 year old, for a high school student, etc). Just let it know when you have no more questions, and it’ll move on to the next tier of explanation.
(Note: I know the look of this site isn’t great yet. I’m working on it. You can check out the standalone bot here if it’s easier to navigate: https://prompt-professor.vercel.app/)
Sentiment analysis bot
This bot has a prompt which causes it to analyze the emotional state of the user, and then use that analysis to decide when it should route the conversation to a human support agent.
It then also explains to you the reasoning for its analysis and decisions. Usually this would be behind the scenes, but I made it frontend for the purposes of this test environment.
This prompt gets the bot to generate a story in the style of an author (user chosen, if the user would like). It’s designed to provide a few paragraphs of story, present a problem, then ask the user what they want to do about the problem. It should bring the story to a conclusion in a relatively short timeframe, then ask if the user wants to start another one.
Outsourcing my love life
On dating apps, I could use the profile’s short word count to try to squeeze in information about myself and some clever banter. Or I could use it to link to a virtual version of myself ladies can chat with.
This one requires a very long prompt. On top of the instructions, it needs a lot of information about me including hobbies, personality, preferences, and I even fed it a bit of my writing so it can try to mimic my writing voice.
One challenge with this bot is that it loves to make up false information about me. With this in mind, I added another experiment to it: Self-reporting made up info. In theory, this prompt should require the bot to end every message by telling you which information is directly from the prompt and which information it’s guessing and which information it entirely made up.
Custom built version of the bot on my home page. Pro: works far faster and looks better. Con: URLs don’t show up as hyperlinks, and the hyperlinks are the entire point of the bot. Work in progress to figure that out, and then I’ll use this to replace the homepage bot.