Prompt Engineering Guide
Prompt Engineering Guide
YOUTUBE:www.youtube.com/@dainami_ai 02
Who am I?
YOUTUBE:www.youtube.com/@dainami_ai 03
Prompt Engineering IssuesToday
-Information overload
YOUTUBE:www.youtube.com/@dainami_ai 04
Prompt Engineering Here To Stay
-Prompt engineering jobs in
high demand ($375K++)
YOUTUBE:www.youtube.com/@dainami_ai 05
GOOD NEWS!
PROMPT ENGINEERING ISN’T THAT
DIFFICULT!
YOUTUBE:www.youtube.com/@dainami_ai 06
Zero to Hundred in Prompting!
YOUTUBE:www.youtube.com/@dainami_ai 07
Prompt Engineering Template
Learn once and build powerful AI automations forever!
YOUTUBE:www.youtube.com/@dainami_ai 08
Take it with a pinch of salt
While this template is useful in helping us get
started
YOUTUBE:www.youtube.com/@dainami_ai 09
Basic Prompt Example
YOUTUBE:www.youtube.com/@dainami_ai 10
Prompt Template:
https://docs.google.com/document/d/1y5QxkXSFfMPbrLtSxioi3kSrs0E2Cy4OqOow68dRq3g/edit
YOUTUBE:www.youtube.com/@dainami_ai 11
01 Role Prompting
Goal:
Provide the LLM (Large Language Model) with a specific role e.g. marketer, writer,
analyst etc.
Note:
LLMs like ChatGPT are very powerful with billions of tokens, but just like the most
talented human, they can perform much better if given super-specific tasks one
at a time.
Role
Example:
You are a professional YouTube Title Writer specialising in generating
surprisingly good titles that would make any YouTube videos go viral.
Key Qualities
YOUTUBE:www.youtube.com/@dainami_ai 12
02 Tasks (Chain of Thought)
Goal:
Define the specific task you want the specific agent to perform.
Note:
Always start with a verb (generate, write, analyze)
Be descriptive and precise
YOUTUBE:www.youtube.com/@dainami_ai 13
02 Tasks (Chain of Thought)
Example:
Your task is to generate curiosity-inducing, high-quality titles for YouTube videos with 50
characters or less.
1.Ask for context about the YouTube channel such as attached resources or links to understand
the channel’s content, target audience, and style.
2. After getting the context about the YouTube channel, get the information of the video that you
need to create a title for.
3. Identify the core topic, subject matter and purpose of the video.
4. Before generating the title, make sure to return the information you have received and confirm
if that is accurate. ONLY proceed to the next step if the user has verified the information.
a. Example of information being returned:
i. Your Channel: XYZ Channel
ii. Your Channel Focus: AI Automation for Businesses
iii. Video Topic: How AI helps farmers by automating the watering process
iv. Target Audience: Businesses and individuals interested in AI applications for agriculture
YOUTUBE:www.youtube.com/@dainami_ai 14
02 Tasks (Chain of Thought)
Example:
5. Brainstorm and dive deep into potential “curiosity gaps” or open-loop questions that
would make a viewer want to click to find out the answer given in the video. For example:
a. What is something shocking that has happened?
b. How did this impossible task/situation happen?
c. Are there any secrets and non-public information that would be revealed to the
viewers?
d. Why did this situation occur in the first place?
6. Create a catchy title that leverages the curiosity gap to hook the audience, while being
informative about the video’s topic. Be specific and straight to the point.
7. When possible, include numbers, superlatives or any strong adjectives to make the title
more compelling, but avoid obvious clickbait.
8. Triple-check to ensure that the title is 50 characters or less. Shorten it further if needed.
9. Make sure to return the title by capitalizing the first letter of each major word, except for
short connector words such as “of”, “for”, “in”, etc.
YOUTUBE:www.youtube.com/@dainami_ai 15
03 Specifics
Goal
Highlight any specifics you would like the agent to take note of when performing
the tasks (e.g. guardrails of what to say, what not to etc.)
Example:
It is crucial to our business that the title is understood by our audience as
quickly as possible so ensure that the title can be read smoothly and is easily
understood by a 5th-grader.
This task is super important in providing first impressions to our potential
audience so make sure that the title is grammatically correct.
YOUTUBE:www.youtube.com/@dainami_ai 16
04 Context
Goal
Provide a context to what the agent is operating and why is this specific task
important.
Prompt Techniques:
Use emotional prompting to explain the importance of its role
Use role prompting to further clarify what it is doing and why
Example:
Our company provides the best AI videos and tutorials to businesses across various
industries. The YouTube channel is our main acquisition channel for getting new
clients and customers for our business. Your role in creating the best titles is super
essential to ensure that the educational team’s hours of research in creating the
most valuable content is shown to the right audience. By accurately and precisely
creating the best titles that grabs attention on our YouTube channel, you directly
contribute to the growth and success of our company, therefore we greatly value
your careful consideration and attention to your work.
YOUTUBE:www.youtube.com/@dainami_ai 17
05 Examples
Goal
Provide examples of outputs that the agent can reference to produce more accurate
results to what you want to see. (3-5 examples are good enough to get an increase
in accuracy)
YOUTUBE:www.youtube.com/@dainami_ai 18
05 Examples
Example:
Traits of a great title include:
Ability to immediately spark curiosity and interest within the first 10 seconds of seeing the
title
Effectively convey the message of the video in a concise manner through the use of specific
details and a vivid message
Adhere to the proper title case and grammar
Provides a curiosity hook for the video to close it
YOUTUBE:www.youtube.com/@dainami_ai 19
06 Notes
Goal
Add any additional and final details that you want the agent to take note of
Lost in middle effect
LLMs performs best with relevant info in front and end of the input
Information in the middle for long form inputs may be forgotten
Note:
Less is more
Great for reminders of key points from the tasks
DON’T use negative prompts (elephant issue --> model will think of elephant if
you ask it not to)
✅ Create Authentic Titles: Craft titles that accurately reflect the content
while still generating genuine curiosity. Ensure the title promises only what
the content delivers, maintaining trust with your audience.
YOUTUBE:www.youtube.com/@dainami_ai 20
06 Notes
Example
1. Consistency: Ensure that the tone and style of the title match the overall
branding and style of our YouTube channel.
2. Create Authentic Titles: Craft titles that accurately reflect the content while
still generating genuine curiosity. Ensure the title promises only what the
content delivers, maintaining trust with your audience.
4. Target Audience: Keep our target audience in mind; the titles should
resonate with the target audience preference as given by the user.
YOUTUBE:www.youtube.com/@dainami_ai 21
07 Additional Pointers
Formatting Prompts:
Long prompts are messy and GPT doesn’t take in formatting from word doc
Horizontal rules
Three or more asterisks (***): To seperate major topics/themes
Three or more dashes (---): To seperate different parts of the prompt
such as context, instructions etc.
Three or more underscores (___): softer transitions between related
subtopics or to group similar instructions within a prompt
YOUTUBE:www.youtube.com/@dainami_ai 22
07 Additional Pointers
Syntax and Horizontal Rules:
Headings: Use # to denote heading levels (e.g., # Heading 1, ## Heading 2, ### Heading
3, #### Heading 4).
Bold Text: Enclose the text within double asterisks (**text**) or double underscores
(__text__).
Italic Text: Enclose the text within single asterisks (*text*) or single underscores (_text_).
Strikethrough Text: Enclose the text within double tildes (~~text~~).
Monospace Text: Enclose the text within backticks (`text`).
Blockquotes: Begin the line with a greater-than symbol (>).
Ordered Lists: Start lines with numbers followed by periods (1., 2., etc.).
Unordered Lists: Start lines with dashes (-), plus signs (+), or asterisks (*).
Horizontal Rules: Use three or more hyphens (---), underscores (___), or asterisks (***)
on a line by themselves.
Links: Format links as [link text](URL) (e.g., [Google](https://www.google.com)).
Images: Embed images using .
Code Blocks: Indent code by four spaces or use triple backticks (```) for code blocks.
Inline Code: Enclose inline code within backticks (`code`).
Tables: Create tables using vertical bars (|) and hyphens (-) to define the table structure
YOUTUBE:www.youtube.com/@dainami_ai 23
CONGRATS!
Using these basic
principles, you can now
go out there and
prompting.
YOUTUBE:www.youtube.com/@dainami_ai 24
THANK YOU!
Connect with Me:
📺 YouTube
https://www.youtube.com/@dainami_ai/
🐤 Twitter
https://twitter.com/mrdainami
Hope you enjoy this quick guide and are your way to explore the vast possibilities of automation with AI.
Remember, your imagination is only the limit!
25