Back to course

Prompt Engineering for Developers

Generative AI for Web & Mobile Apps

Master the Prompt

Prompt engineering isn't just for users; developers use it to control the output format of the AI.

Techniques:

  1. System Roles: Tell the AI it is a "Professional Travel Agent" or a "JSON Formatter."
  2. Few-Shot Prompting: Provide examples of inputs and outputs within the prompt.
  3. Chain of Thought: Ask the AI to "think step by step."

We will learn how to force the AI to return JSON so our apps can parse the data easily.