# Final Tips

* **Stay Solana-specific:** Always frame your prompts in Solana terms. Use words like “Solana program” or “Anchor” rather than generic “smart contract,” to keep the AI on the right track. Avoid mentioning Ethereum or EVM concepts – they will confuse the model or lead it to produce irrelevant output for Solana.
* **Use Anchor where appropriate:** Anchor is the de facto framework for Solana programs, and the AI is likely to produce more correct code with it (since it abstracts away a lot of boilerplate). If you want raw Solana CPI calls without Anchor, you can ask for that, but be aware the complexity is higher. In most cases, prompting for Anchor usage yields cleaner results.
* **Leverage Nyvo’s features:** Nyvo is not just a static code generator – it’s an interactive platform. Take advantage of the ability to **preview the dApp**, tweak prompts, and re-run generation. This trial-and-error is normal in prompt engineering. Each iteration teaches you and the AI more about what the project needs.
* **Learn from AI’s output:** Sometimes the AI may suggest a different approach or include features you didn’t explicitly ask for. Review these suggestions; you might learn a Solana trick or realize you need to clarify your prompt to avoid or incorporate such additions. For instance, if the AI spontaneously adds a feature (like tracking every contribution in a campaign), decide if that’s beneficial or if it should be removed for simplicity – then adjust your next prompt accordingly.
* **Security and best practices:** AI might not automatically handle all security concerns (like integer overflow, re-initialization attacks on accounts, etc.). Always double-check these. You can even prompt the AI with something like, “Review the program code and enumerate any potential security issues or inefficiencies,” to see if it can self-audit. Use resources like the Solana security model and Anchor documentation, as references for what to watch out for.

By following these prompt engineering techniques, builders and developers using Nyvo can co-create robust Solana dApps more efficiently. You provide the vision and guidance in the prompt, and let the AI do the heavy lifting of coding the initial versions. With clear instructions, proper context, and iterative refinement, AI-powered dApp generation can significantly speed up the development process while keeping you in control of the outcome.&#x20;

Happy building on Solana with Nyvo!
