Road Trip GPT Project

Using Generative AI to build an AI-powered travel guide in Flutter

GPT prompt: “You are a flutter developer. You are building an app called Road Trip GPT. It’s function is to tell you about the areas you drive through, updating according to configurable distance parameters. The UI shows your current location on a map and below it is a text area that gives information about where you are. The information is retrieved via Chat GPT API. The information can be read out loud by the device “

Method and Constraints

  • Use prompt engineering to generate as much of the code as possible.
  • Use generative AI APIs to provide the app content.
  • Complete the app in one afternoon.

Key Learnings

  1. Start with a detailed outline of your objectives.
  2. Use detailed, specific prompts.
  3. Resist the temptation to jump into hand writing or editing code until you get into diminishing returns from prompting.
  4. Ask the model to correct errors or suggest alternatives. It can be quite a bit quicker than fixing yourself and you can learn new approaches you might not have considered.
  5. Sometimes it's worth prompting for the same thing more than once. It can generate different solutions and some are better than others.
  6. Sometimes a subtle change in prompt can produce significantly better results.
  7. Have a clear understanding of the tech stack you are using. You should be capable of building it by hand.
  8. Read the generated output carefully and be sure you understand it. There can by subtle errors.
  9. Use image generators like DALL-E or Microsoft Designer to create iconography.
  10. Use Chat-GPT generated content combined with IDE tools such as VS Code with Github CoPilot for maximum productivity.