Prompting is how you communicate with Same to build your project. Treat a chat as a conversation with Same, where every message is a prompt.Remember, Same is not a human, so it is important to be clear and concise in your prompts.
Each prompt should relate to a single task or change. This helps keep Same focused on a single task and improves the quality of the output.Instead of: “Rebuild the entire dashboard with a new design and add analytics.”Try:
“Update the color scheme using these hex codes: #…”
“Refactor the dashboard Card component to use Tailwind CSS.”
“Add a chart component here to display user signups.”
“Add analytics tracking for button clicks.”
This helps Same focus and makes it easier to review changes.
Here is an example of a prompt that is not effective:
Copy
Ask AI
the dropdown menu isn't working and the button should be green
This prompt has several issues:
Did not provide context on which dropdown menu isn’t working.
Did not describe what specifically isn’t working.
Added another bug report along with it.
When prompting Same, it is paramount to provide as much context as you can, while keeping your prompt lean of any extraneous details (such as the second bug report in the example).Here is a better version of the prompt:
Copy
Ask AI
The "choose provider" dropdown doesn't expand when I click on it. Could you fix this?
With this prompt, we provided the exact dropdown that isn’t working and mentioned how it isn’t working. We also provided a note to Same that we would like it to fix the issue, which communicates our intent clearly.
To avoid unnecessary errors or confusion, keep in mind:
Do not ask Same for token estimates.
Same does not have access to internal token counts and any guess would be unreliable. You can keep an eye on your token usage by clicking on your profile icon or going to the settings page (learn more).
Do not ask for downloadable ZIPs.
While Same can generate or modify files, packaging and serving a ZIP is outside its capabilities. Instead, use the download button in your project (learn more).
Do not ask Same to revert files or changes.
Use the built-in version control system for reverting to previous states. This is more reliable and keeps the chat focused.
Usually, prompts are handled as a one-shot action, where Same will attempt to complete the task in one go. When working with complex tasks, it might be helpful to guide Same through the process step-by-step.For example, you could use the phrases like:
“Create a plan for implementing the new user profile feature.”
“Investigate and provide a report for the bug in the payment flow.”
“What are three ways we can improve the performance of this page?”
This instructs Same to think and plan before proceeding with the expected action.
Same will process the updated instruction. You may be asked if you want to revert the project state to that point, which would clear subsequent messages.
It is important to keep in mind that generative AI, including Same, is not perfect. It may make mistakes or create unwanted changes.If this happens, you can always revert your project to a previous state or check out our troubleshooting guide.