๐Top prompting strategies
This guide is about wielding the Databutton agent for maximum effect by becoming a prompting expert!
The main things to consider when prompting the agent are:
Make sure to be precise and specify what you want
Ensure the agent knows what is in your head by providing context (communicate!)
Work on smaller chunks, iteratively
Precision
Use the #tag functionality to reference specific code files: i.e. "update the parsing functionality in the #parser backend to include search results for 'samsung tv'"
Add screenshots and highlight specific elements: Instead of saying "make this" alongside the screenshot, you need to clarify what is in your head. i.e. "Make this exact navbar from the screenshot, ensure the styling, spacing, and colors match"
Provide context and communicate
Act like you are writing a brief on Fiverr! If you treat the AI like a freelance developer, you'll likely get better results. Instead of "built a chat app" you can say "build a chat app that looks like ChatGPT, with a navigation for looking at previous conversations and a main section for viewing the chat, chat bubbles should alternate between the user and the AI, with the chat input field at the bottom" (you can also include a screenshot here)
Give examples: "I want my design guidelines to be like Spotify's with dark mode and high information density"
Provide use case context: Databutton won't know unless you tell it, so you can add things like "this #Home page will mostly be used on mobile"
Work iteratively
Work in smaller tasks: Don't go for a very big scope right up front like "Build an AI SDR" but rather go with small chunks like "Create a form for designing a call flow"
Work iteratively: It takes several attempts to know what you actually want. You can either write more precise prompts to make changes "change the nav bar hover behavior into click behavior" OR roll back entire changes to start over with the "Restore from this point" button.
In addition to this, we recommend reading and sharing more prompt tips on our #prompt-tips discord channel.
Last updated