Prompt Gallery

Collection of prompts suggested by the Databutton builders. Make sure to check our Discord Prompt Tips channel for details.

We also recommend our discord prompt tips channel and the rest of this section for a deeper understanding of effective prompting strategies and examples. Prompting in Databutton

Starting prompts and strategies

  1. Outline Before Execution:

I need to create/modify XYZ. Don’t write code. Outline how you will complete the task. 
  1. Step-by-Step Execution:

Proceed. Take this one step at a time. Do not deviate. Confirm each step before continuing.
  1. Memory Jogging:

Let’s work on #xyz. Remind me why this functionality was important in the first place.
  1. Saving Workflows: ( Optional and if necessary )

Save this workflow as a .txt file within internal storage for future reference.

Debugging Prompts:

  1. Basic Debugging:

Read code in the console. Come up with a plan to fix it. Do not write code yet.
  1. Addressing Errors:

  • Initial Analysis

Take a step back and tell me what errors you are experiencing. Don’t write code. Respond. 
  • Follow-up

  1. Post-Debugging Analysis:

Handling Agent Loops

Prompts to Resolve Loop Issues:

  • Breaking the Loop:

  • Optimal Approach:

  • Subtasks for Clarity

Specialized Prompts for Debugging

  • Log Analysis

  • Log Visualization

  • Refactoring Workflow

"Super" prompts ( termed by pro Databutton Builders)

Enhancing Collaboration with AI Agents

  • Improving Efficiency

  • Testing Updates

General Prompting Tips by Community experts

General Tips:

  1. Use the # function to accurately refer to what you are talking about.

  2. Include/upload references to your prompt;

    1. UI: go find examples of what you want and take a screenshot (styles you like, designs you like, draw a layout on a piece of paper and snap a photo). Upload the sample to your prompt. The agent will get pretty close most times with minor revisions.

    2. Backend/frontend code: Include a link to a website, reddit post, knowledge base, article, python documentation. This information helps the agent immensely.

  3. Knowledge is power and the more knowledge or insight you can give the agent, the better the outcome/design/functionality. But don’t confuse knowledge for prompt length. Keep your prompt reasonable.

  4. When a complex, multistage workflow is being used, always create rules for the workflow. Place the rules in the agent instructions located in settings. I label the instructions with the same # naming convention as the api. Example: “#supabase_models rules”.

  5. Don’t be afraid to ask the agent questions before you proceed. Learn from the agent. Ask it why it is doing something a certain way. You will be surprised how many times you learn something really cool or the agent responds with “Thanks for mentioning that, here is a better way to do this”.

  6. If you feel like the agent may be wrong or you need another sounding board, use ChatGPT to give a comparative response.

  7. If your prompt gets too long or you feel like you aren’t efficiently describing the request, use either the agent or ChatGPT to revise the prompt for you. “Please review my prompt. Please reformat the prompt so it is optimized for you (or an AI agent) to understand. Don’t write code. Respond.”

Join our discord community here.

Last updated

Was this helpful?