DelegIA
Get started

What is a prompt in AI

An AI prompt is the instruction you give an AI tool when you want it to do something. It can be a question, a task, or text the AI needs to consider. In everyday use, it's what you type into ChatGPT, Claude, Gemini, or Copilot before hitting Send.

Albert López·Founder of DelegIA·Updated

Also called
Instruction, request
Type
Concept
Reading time
9 minutes

What is a prompt in generative AI and ChatGPT

In artificial intelligence, a prompt includes your request and anything you send with it, such as an attachment or an example. This input, along with any instructions saved in a project, tells a generative AI model what you need. If the context available to the model is missing a fact about your task, it has no reliable basis for using that fact. OpenAI: prompting, project context.

A prompt for ChatGPT does the same job as one for Copilot, Gemini, or Claude, though each tool may use a different model. If you prompt ChatGPT and then reuse those instructions in another assistant, test them on the same example to see whether they produce what you need.

Image generators work similarly: the prompt describes the image you want. In marketing, a prompt might ask for an Instagram caption, variations on an ad, or an email subject line.

Two ChatGPT prompt examples for replying to a customer complaint

For these examples of generative AI prompts, a customer is upset because an order is three days late. Someone in customer service asks AI to draft a reply, first with a vague request and then with the details it needs.

Weak prompt

“Reply to this customer.”

Useful prompt

“You are the customer service manager at an office supply distributor. A customer is complaining because their order is three days late; I have pasted their email below. The delay was caused by a shipping carrier error, and the order will ship tomorrow. Write a reply in fewer than 120 words, with a friendly tone and no lengthy excuses: apologize, explain the cause in one sentence, say the order will ship tomorrow, and offer expedited shipping at no extra charge. Sign it as Emily from the orders team.”

With the first prompt, the AI has to fill in the cause, the solution, and the tone, so the reply may sound generic or promise something the company doesn't offer. The second provides those details, leaving the AI to do what it does best: draft the reply.

How to write an AI prompt

When you prompt AI, give it the same information a new employee would need. The goal is a response you can use with very little editing on the first try. Google's Gemini prompting guide groups that information into four areas you can use with any assistant. Google: Prompting guide 101.

  1. RoleTell it whose role to take, such as a purchasing manager or a labor and employment attorney.
  2. TaskSay what you want it to do. Use a clear verb such as summarize, draft, compare, or classify.
  3. ContextInclude what you know that the AI doesn't, such as customer details, why the task matters, or what you've already tried.
  4. FormatSpecify what the result should look like, such as a table, three options, or a five-line email.

You can also include an example of the result you want. OpenAI and Anthropic recommend giving examples alongside clear instructions and an explicit description of the format. OpenAI: prompt engineering, Anthropic: prompting best practices.

Then test the prompt on a real task, review the draft, and adjust the instructions based on the response. If the answer is too long, ask for a shorter one. If it makes up a fact, provide the correct information. Missing context is often why a result falls short. With the teams we train, we save corrections to recurring mistakes as rules in the AI's standing instructions so they're available in the next conversation.

What is prompt engineering in AI

AI prompt engineering means designing and testing prompts to help a model perform a specific task well and respond more consistently. The two complaint prompts above are examples of prompt engineering. You write a prompt, test it on real examples, and revise what doesn't work so you can reuse it for recurring tasks. IBM describes this as helping generative AI models understand and respond more effectively. Anthropic and OpenAI publish guides on giving clear instructions and examples, assigning the model a role, and specifying the format you want. IBM, Anthropic.

An AI prompt engineer does that work. For the businesses we work with, hiring one isn't the first step. We teach the people who use AI every day to write and test prompts, then save the ones that work as team instructions.

In prompt engineering for ChatGPT, you change the instructions you give the model. Fine-tuning changes the model itself through further training on examples of the task. OpenAI's model optimization guide recommends measuring performance first, then improving the prompt. That may be enough, though some use cases call for fine-tuning. OpenAI: model optimization.

Master prompts, system prompts, and meta prompts

If your team keeps giving the same instructions, save them. A master prompt is a longer prompt with the background and rules the AI needs for a type of work: what your company does, who it sells to, how it writes, and what it must not say. Your team can reuse it in each chat without explaining everything again.

In ChatGPT and Claude, you can save this text as project instructions that apply to conversations within the project, much like a system prompt in a software integration. A system prompt gives the model its role and rules alongside the conversation. Anthropic documents how this works for Claude. In n8n, the AI Agent node has a System Message option where you can set the agent's instructions. ChatGPT projects, Claude projects, Anthropic, n8n.

We recommend one project per department, each with its own rules file, so the AI already has the company and department context when someone in sales or administration starts a conversation. You can reuse the same rules file in ChatGPT, Claude, or another assistant.

A meta prompt asks AI to write another prompt. It works well for us when a conversation gets long: ask the AI to “write a prompt with what we have worked on and what I am trying to achieve,” then use that to start a new chat. We also use it before a large task. Ask the AI what it needs to know, then have it write a prompt based on your answers.

JSON prompts, negative prompts, and prompt injection

JSON prompt

A JSON prompt uses JSON or asks for a response in that format. JSON organizes data into fields that software can read, so it's useful when another program needs to process the AI's output. For example, you can ask the AI to extract the vendor, date, and amount from an invoice into separate fields. OpenAI: JSON output.

What is a negative prompt in AI

A negative prompt tells an image generator what to leave out, such as text, watermarks, or distorted hands. You can use one if the generator supports it. AWS: negative prompts.

How does prompt injection work in generative AI

AI prompt injection is an attack that redirects a model from what you asked it to do, for example by getting it to send data elsewhere. AI prompt injection examples include direct attacks sent as requests and indirect prompt injection hidden in an email or web page the AI reads. OWASP lists prompt injection as LLM01 in its 2025 risks for language model applications. If your AI reads external documents or emails, require a person's approval before it sends anything, makes a payment, or deletes data. OWASP: LLM01:2025.

What prompt means in computing and programming

The word predates AI. In computing, a prompt is the symbol a terminal displays while waiting for a command, such as C:\> in Windows. Windows has a command called prompt to change it. In JavaScript programming, prompt() opens a small browser dialog that asks the user to enter a value. Microsoft Learn, MDN.

In both cases, the system asks you to type something. In an AI chat, the prompt is the request you write and the model receives.

When a prompt is no longer enough

A good prompt can handle an individual task. But when that task comes up every day, needs data from your company's software, or sends results to your CRM or billing software, someone still has to copy data into the chat and paste the response where it belongs. You're still doing the manual work you wanted to remove.

At that point, you can make the prompt part of a system. An agent or automation receives the task automatically, retrieves the data it needs, and follows the saved instructions. It then puts the result in the right application for a person to review. The instructions are still a prompt; nobody has to type them each morning.

See What is an AI agent for an explanation of how these systems work.

For help teaching your team to write useful prompts and set up instructions for each department, see our AI training for businesses page. It explains how we work. You can also request a free initial call.

Sources

All sources accessed November 26, 2026. Source editions retain their own dates.

  1. Google Workspace: Prompting guide 101 and the October 2024 guide, page 2: role, task, context, and format.workspace.google.com
  2. OpenAI: Prompt engineering best practices for ChatGPT and API prompt engineering guide: instructions, examples, and iteration.help.openai.com
  3. Anthropic: Prompt engineering overview.platform.claude.com
  4. Anthropic: Prompting best practices: roles and system prompts. This is the current destination of the original system-prompts URL.platform.claude.com
  5. IBM: What is prompt engineering?.www.ibm.com
  6. OpenAI: Model optimization.developers.openai.com
  7. n8n: AI Agent and Tools Agent, System Message.docs.n8n.io
  8. OWASP: LLM01:2025 Prompt Injection: direct and indirect attacks, restricted permissions, and human approval.genai.owasp.org
  9. Microsoft Learn: prompt command.learn.microsoft.com
  10. MDN: Window.prompt().developer.mozilla.org
  11. OpenAI: Projects in ChatGPT.help.openai.com
  12. Claude Help Center: Creating and managing projects.support.claude.com
  13. OpenAI: Structured model outputs: JSON output for software to process.developers.openai.com
  14. AWS: Negative prompts: image elements to exclude.docs.aws.amazon.com
Albert López

Albert López

Founder of DelegIA

He helps small and midsize businesses in Spain decide where AI makes sense, implements the systems they agree on, and supports the teams using them. These glossary entries draw on what he learns from that work.

Last reviewed: