
Prompt Engineering Techniques: Few-Shot, CoT & More
A practical cheat sheet of prompt engineering techniques for choosing zero-shot, few-shot, chain-of-thought, role prompting, RAG prompts and more.
Jai Jha· 25 Nov 2026· 10 min read
If you want to learn how to build a chatbot, do not start by comparing 20 chatbot platforms. Start with one clear user problem, one simple conversation flow, and one working version you can test.
This guide is written for beginners, students, and freshers who want a practical path. You will see no-code and code options, beginner-friendly tools, and examples you can adapt for a college project, portfolio, or small business use case.
What to do: define the single job your chatbot must do. A beginner chatbot should not try to answer everything, book appointments, process payments, and handle complaints on day one.
Why it matters: the smaller the job, the easier it is to design, test, and improve. Most failed beginner chatbot projects fail because the scope is too wide, not because the technology is weak.
A good first chatbot goal looks like this:
For example, instead of saying you will build a college chatbot, say you will build a chatbot that answers admission questions from a PDF brochure. That gives you a clear input, a clear user group, and a clear way to judge whether it works.

Write a one-line project statement before touching any tool: This chatbot helps first-year students ask questions about the data analytics syllabus and gives short answers based only on the syllabus document.
What to do: choose the build approach based on your current skill, deadline, and learning goal. You do not need to start with complex engineering.
Why it matters: a no-code chatbot is faster for demos, while a coded chatbot teaches you how the parts work. A low-code approach sits in the middle and is often best for learners.
Approach | Best for | Tools to try | Main trade-off |
|---|---|---|---|
No-code | Fast demo | Dialogflow, Botpress, Voiceflow | Less control |
Low-code | Learning plus speed | Flowise, Langflow, Zapier | Some setup needed |
Code | Portfolio projects | Python, Streamlit, Gradio | More debugging |
If your goal is a college submission, no-code may be enough. If your goal is to become an AI or automation fresher, build at least one version with code so you understand prompts, API calls, testing, and deployment.
A practical beginner path is to first design the chatbot in a document, then make a simple no-code prototype, then rebuild the same idea in Python. This sequence gives you confidence before you deal with errors, API keys, and hosting.
What to do: decide whether your chatbot is rule-based, AI-based, or retrieval-based. These are different styles, and beginners often mix them without knowing it.
A rule-based chatbot follows fixed paths. For example, if the user clicks fees, it shows fee information. This is simple and predictable, but it struggles with unexpected questions.
An AI-based chatbot uses a large language model, often called an LLM, to understand natural language and generate answers. This feels more flexible, but it can produce wrong or unsupported answers if you do not control it.
A retrieval-based AI chatbot searches your own documents first, then asks the model to answer using that information. This pattern is commonly called retrieval augmented generation, or RAG. For beginners, this is the best style when the chatbot must answer from notes, PDFs, course material, or company documents.
Concrete example: if you are building an FAQ bot for an AI course, use retrieval-based design. Upload your FAQ or syllabus, split it into small chunks, search the relevant chunk when a user asks a question, then ask the model to answer only from that chunk.
What to do: gather the information your chatbot is allowed to use. This may be a PDF, website copy, a spreadsheet, a help document, or your own notes.
Why it matters: AI chatbots are only useful when their source material is clean and specific. If your document is outdated or confusing, the chatbot will repeat that confusion.
Start with a small knowledge base:
Clean the content before connecting it to the chatbot. Remove duplicate answers, old dates, broken formatting, and unclear abbreviations. If the document uses internal terms, add a short glossary.
For example, a beginner course chatbot may need clean answers for eligibility, course duration, tools taught, project work, certificate, class format, and contact process. Put those answers into a simple Google Sheet or Markdown file first.
A useful rule: if a human cannot answer confidently from your source file, your chatbot will not either. Good chatbot building starts with good content preparation.
What to do: write the instruction that tells the AI how to behave. This is often called the system prompt or developer instruction, depending on the tool.
Why it matters: a prompt gives your chatbot boundaries. Without boundaries, it may become too wordy, guess answers, or respond outside your project goal.
A simple beginner prompt can include:
Example prompt:
You are a helpful course assistant for beginner students. Answer only questions about the uploaded course document. Keep answers short and practical. If the answer is not in the document, say that you do not have enough information and suggest contacting the course team.
This one instruction already improves quality. It tells the chatbot not to invent answers, not to act like a general expert, and not to overload a beginner with long explanations.
If you are using a no-code tool, place this instruction in the bot instruction or system prompt area. If you are using code, pass this instruction as the system message to the LLM API.
What to do: choose the minimum tool stack needed for your first working chatbot. Avoid setting up a heavy cloud architecture for a beginner project.
Why it matters: every extra tool adds setup time and debugging. Your first goal is to make the chatbot respond correctly, not to build a production system.
For a no-code prototype, try a visual chatbot builder such as Google Dialogflow, Botpress, or Voiceflow. These tools let you design flows, add knowledge sources, and test in the browser.
For a coded beginner project, a simple stack is enough:
You can learn Python basics from the official Python documentation and build simple app interfaces with Streamlit or Gradio. If you are completely new, use a notebook first, then move to an app.

If you want a structured learning path with guided AI projects, explore the GenAI Bootcamp by InfraOne School of AI. It is useful when you want mentorship instead of learning every tool alone.
What to do: create a basic loop where a user types a message, the model receives it, and the chatbot returns a response. This is the core of an AI chatbot.
Why it matters: once you understand the chat loop, every advanced feature becomes easier. Memory, document search, buttons, and deployment are additions to this basic pattern.
Here is a minimal Python-style example using the OpenAI Python library. You need an API key from your provider before running it.
from openai import OpenAI
client = OpenAI()
system_prompt = 'You are a helpful beginner chatbot. Answer clearly and briefly.'
while True:
user_message = input('You: ')
if user_message.lower() in ['exit', 'quit']:
break
response = client.chat.completions.create(
model='gpt-4o-mini',
messages=[
{'role': 'system', 'content': system_prompt},
{'role': 'user', 'content': user_message}
]
)
print('Bot:', response.choices[0].message.content)This is not a complete product, but it teaches the most important idea. The chatbot works because you send the model a clear instruction and the user message, then display the model response.
For a no-code version, the same logic happens behind the scenes. You write instructions, connect a model or knowledge source, test the chat, and publish it to a webpage or share link.
What to do: connect your chatbot to your own content. This is the step that turns a general AI chatbot into a useful assistant for a specific topic.
Why it matters: general models may answer from broad training knowledge. A student help bot, HR bot, or course bot should answer from approved material, not from guesses.
The simple retrieval workflow is:

Beginner-friendly tools such as Flowise and Langflow can help you create this workflow visually. In code, many learners use frameworks such as LangChain or LlamaIndex, but you should first understand the concept before adding a framework.
Concrete example: if the user asks, what projects are included in the course, the chatbot should search the course document, find the section about projects, and answer from that section. If the document does not mention projects, the chatbot should say it does not have that information.
What to do: test the chatbot with questions that real users would ask, including unclear, misspelled, and unexpected questions. Do not test only with perfect examples.
Why it matters: a chatbot that works only for your own questions is not ready. Testing reveals gaps in the source content, prompt, and conversation design.
Create a small test sheet with these columns:
Test type | Example | Pass condition |
|---|---|---|
Direct | What is the course duration? | Correct answer |
Misspelled | courz duration? | Understands intent |
Out of scope | Can you write my exam? | Refuses politely |
Missing info | Is hostel included? | Says not enough info |
Follow-up | What about fees? | Asks or answers clearly |
Ask at least three friends to test it without explaining how it works. Watch where they get stuck. Beginners often discover that users ask shorter, messier questions than expected.
Improve one thing at a time. If answers are too long, edit the prompt. If answers are wrong, clean the source content. If users do not know what to ask, add welcome suggestions.
What to do: give yourself a realistic build schedule. A first chatbot can be built quickly, but a useful chatbot needs time for testing and cleanup.
A practical beginner timeline looks like this:
Time | Goal | Output |
|---|---|---|
Day 1 | Define scope | One chatbot statement |
Day 2 | Prepare content | Clean FAQ or document |
Day 3 | Build prototype | No-code or simple Python bot |
Day 4 | Add prompts and rules | Safer responses |
Day 5 | Test and improve | Test sheet and fixes |
Weekend | Polish portfolio | Demo link or GitHub repo |
If you are doing this as a serious portfolio project, take two to three weeks. Add a clean interface, a short README, screenshots, test cases, and a short explanation of your design choices.
Common beginner mistakes:
Also remember that AI chatbots can make mistakes. If your chatbot handles health, finance, legal, education admissions, or personal data, add clear boundaries and human review. For beginner projects, avoid sensitive use cases until you understand safety, privacy, and evaluation better.
The best first project is not the most advanced one. It is the one you can explain, test, and improve with evidence.
Choose one small chatbot idea today and write its one-line project statement. Then collect 10 to 20 real questions a user might ask.
After that, build the simplest version first, either in a no-code tool or with a short Python chat loop. Once it answers basic questions correctly, add document search, testing, and a clean demo for your portfolio.
Yes. Tools such as Dialogflow, Botpress, Voiceflow, Flowise, and similar builders let you create chatbot flows and connect knowledge sources visually. Coding becomes useful later when you want more control, custom logic, or a stronger portfolio project.
The easiest project is a small FAQ chatbot based on one clean document or 10 to 30 questions. A course FAQ bot, college help bot, or product information bot is easier than a general assistant.
You do not need deep machine learning knowledge for your first chatbot. You should understand prompts, conversation flow, basic testing, and how the chatbot uses information from documents.
No-code is better for quickly understanding chatbot design and creating a demo. Python is better for learning how AI systems work internally and for building projects that look stronger in technical interviews.
Use a narrow scope, clean source documents, a clear instruction prompt, and testing with real questions. For important use cases, make the bot say when it does not know and route users to a human.

A practical cheat sheet of prompt engineering techniques for choosing zero-shot, few-shot, chain-of-thought, role prompting, RAG prompts and more.
Jai Jha· 25 Nov 2026· 10 min read
A free AI course can teach you more than you think, but it stops short in a few costly places. Here is an honest comparison of free vs paid AI learning on certificates, projects, mentorship and jobs.
Aakash Sharma· 24 Nov 2026· 13 min read
A beginner-friendly guide to the types of learning in AI, including supervised, unsupervised, semi-supervised and reinforcement learning, with examples and limitations.
Jai Jha· 23 Nov 2026· 11 min read