0% found this document useful (0 votes)
81 views

Prompt Engineering Guide

Uploaded by

madinos960
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
81 views

Prompt Engineering Guide

Uploaded by

madinos960
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 25

ULTIMATE PROMPT ENGINEERING GUIDE

TO CREATE WORLD-CLASS AI AGENTS

ONLY PROMPT YOU NEED TO GET AI TO WORK FOR YOU ACCURATELY!


YOUTUBE:www.youtube.com/@dainami_ai 01
Zero to Hundred in Prompting AI!
01 Learn how to effectively
prompt and speak to AI!

02 Create useful custom


AI agents and workflows!

03 Full guide template that


you can use and tailor to
any other use cases (Learn
once, prompt forever!)

YOUTUBE:www.youtube.com/@dainami_ai 02
Who am I?

I am Cal from dainami ai & my goal is to explore and


share practical AI automation use cases and workflows
we can build TODAY to get ahead in this AI race!

YOUTUBE:www.youtube.com/@dainami_ai 03
Prompt Engineering IssuesToday
-Information overload

-Many different formats, tips and


tricks from all the content creators
and resources online

-”It’s just english” --> too vague and


too broad

-”Prompt Engineering is dead” --> do


we even need it?

YOUTUBE:www.youtube.com/@dainami_ai 04
Prompt Engineering Here To Stay
-Prompt engineering jobs in
high demand ($375K++)

-Foundation for using most AI


models

-While models gets great,


someone still needs to talk to
these models

-It is still essential in building


strong automation workflows

YOUTUBE:www.youtube.com/@dainami_ai 05
GOOD NEWS!
PROMPT ENGINEERING ISN’T THAT
DIFFICULT!

-You don’t need a PHD to make it


work

-You just need to be concise and


clear

-Here a simple strategy and guide


you can leverage right away!

YOUTUBE:www.youtube.com/@dainami_ai 06
Zero to Hundred in Prompting!

Level 1: Level 2: Level 3:


Use AI to its full Build powerful Build complex AI
potential and get custom GPTs/AI automation solutions that
accurate results Agents for utilises multiple AI agents
for your use cases specific tasks to complete difficult tasks

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

DON’T Fall into the concept of templates but


think of the concepts behind prompting

Such as WHY we are prompting this specific


manner and WHY we put in these concepts

Adapt and modify to your own specific needs!

YOUTUBE:www.youtube.com/@dainami_ai 09
Basic Prompt Example

Example: YouTube Title Generator


Basic Prompt: Generate 10 viral youtube titles for a video covering
the latest features of an popular AI video generator, Sora.
Review:
Can be more specific and detailed to get better results

YOUTUBE:www.youtube.com/@dainami_ai 10
Prompt Template:
https://docs.google.com/document/d/1y5QxkXSFfMPbrLtSxioi3kSrs0E2Cy4OqOow68dRq3g/edit

01 Role (Role Prompting)

02 Tasks (Chain of Thought Prompting)

03 Specifics (Emotional Prompting)

04 Context (Emotional Prompting)

05 Examples (Few Shot Prompting)

06 Notes (Make Sure AI Remembers)

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.

Prompt Technique (Chain of Thought)


Provide the model with a step-by-step process for the task they are supposed to
execute

Note:
Always start with a verb (generate, write, analyze)
Be descriptive and precise

Additional features (variables):


Can add variables using {{}} if needed (example automations with make.com)
Example:
Generate xyz .....
Name: {{name}}
Channel Link: {{link}}

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.

To create an effective title, follow the steps below:

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.)

Prompt Technique (Emotion Prompting):


On top of the guardrails, add short phrases or sentences that contains
emotional points to enhance performance of the model.

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)

Prompt Techniques (Few-Shot Prompting)


Few shot = few “examples” to condition the model through examples:
Can be text, code or images
Allows the model to perform new tasks without long hours fine-tuning
Think of the concept of “learning by example” just like how we humans tend to learn
something first by referencing the “right answers”

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

Examples of great titles:


1. 5 Simple Habits That Made Me a Millionaire
2. 7 Life Lessons I Learnt This Year…
3. The Outrageously EASY Way to Get New Customers
4. How to Get Ahead of 99% of People
5. How to Win (At Anything)
6. This Social Media AI System Creates Unique Content Daily!
7. Dopamine Detox is a Cheat Code to Success
8. Do THIS to Make $10,000 as a Student
9. Age 1-100 Decide Who Wins $250,000
10. In 10 Minutes This Room Will Explode!
11. How to Grow an Audience if You Have 0 Followers
12. “I’m Broke… What Should I Do?”

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.

❌ No Clickbait: While creating curiosity is crucial, avoid titles that can be


perceived as misleading or clickbait.

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.

3. SEO Optimization: Consider including relevant keywords in the title to


enhance search engine optimization (SEO) and discoverability on YouTube.

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

Use markdown format


OpenAI team writes their prompts in markdown too
Headings (#, ## or ### for H1, H2, H3)
Lists (1. 2. 3. 4. 5. 6.)

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 ![alt text](image URL).
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.

Create more effective


and accurate results for
your own use cases!

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

You might also like