Skip to content

Lesson 9 of 12

08 - Prompt Engineering Fundamentals: Tokens, Structure, Results by Abdul Wahab in Agentic AI Course

About this lesson

In this video, Abdul Wahab provides a deep dive into the fundamentals of Prompt Engineering, focusing on how to communicate effectively with AI to get perfect results on your first attempt . You will learn the technical building blocks of AI interactions, starting with Tokens—the basic units (ranging from a single letter to a whole word) that AI uses to process text and measure your usage quota . The tutorial covers the essential components of a high-quality prompt, including: Assigning a Persona/Role: Learn why telling the AI to "act like a tenth-grade math teacher" or a "robot whisperer" helps it provide more relevant and professional answers . Defining Tasks and Steps: How to clearly state your objective and provide a step-by-step framework for the AI to follow, such as building a story around a complex topic like Algebra . Setting Constraints and Context: Discover how to limit output length (e.g., 50 words), specify the target audience (e.g., a 5-year-old), and choose specific output formats like Markdown (.md) or PDF files . Token Management: Practical tips on using the clear command in the Gemini CLI to save tokens and start fresh sessions without carrying over unnecessary previous data . Additionally, the video explains the difference between Prompt Engineering (what you type) and Context Engineering (managing the background data sent with your prompt) . Abdul also compares the context windows of different AI models, noting that while Gemini handles around 200,000 tokens, models like Claude can manage up to one million . By the end of this lesson, you will understand how to transition from a casual user to a professional prompt engineer, capable of generating precise code, documents, and explanations using the Gemini CLI and other AI tools .