Prompt Engineering Essentials · v1.0

Build repeatable workflows and use tools safely

Module 8 of Prompt Engineering Essentials: build repeatable workflows and use tools safely.

Course contents and progress

Course progress

0 of 10 course sections complete

Eight modules, final knowledge check, and capstone.

This course remembers completed sections, assessment point totals, and your last course page in this browser on this device. RayAI does not receive this progress or anything you write. Selected answers and written responses are not saved. Clearing browser data, using private browsing, or changing browser or device can remove or hide saved progress.

MODULE 8 | 45 minutes | FAST TRACK CORE + GO DEEPER

Build repeatable workflows and use tools safely

Core idea: a prompt is only one part of a working system

A prompt can express intent and constraints. It cannot by itself enforce permissions, secure secrets, validate every output, guarantee recovery, or control every external action. Repeatable and action-taking AI needs system design around the prompt.

You are learning how to choose and question a tool, not how to program these controls. Authentication means proving who you are; authorization means what you are allowed to do. If you cannot confirm the controls, keep the task at a manual draft and ask the responsible owner.

Prompt can help System controls must enforce
State the goal, source, boundaries, and desired output Authentication, authorization, access scope, and secrets handling
Request a preview and confirmation Prevent action until confirmation is valid
Ask for a structured result Validate structure, values, and downstream use in code
Describe allowed tools Expose only approved tools with least privilege
Request a log or summary Maintain actual records, monitoring, and recovery paths

Before connecting email or another service

A connection lets an AI tool access information or functions in another account. This can include email, calendars, cloud storage, documents, contacts, workplace systems and other external services. Reading an account and changing it are different permissions.

Interfaces and policies vary. Check the provider’s current permissions and privacy information for your exact tool, account and organization. A prompt saying “do not send” does not remove a tool’s permission to send.

  1. Read access: Can it read one item, an entire mailbox, attachments, shared folders, calendar details or contacts? Does it also reach other people’s information?
  2. Actions: Can it only view, or can it send, edit, delete, publish, share or change permissions? Give only the account, folder, file or function needed. This is called least privilege.
  3. Duration: Is access one-time or ongoing? Could it access future messages or files? Check expiry and background access rather than assuming the connection ends with the chat.
  4. Authority: Does the information involve your workplace, customers or other confidential matters? Confirm your employer’s or organization’s approval for this tool and use. Your ability to click “Allow” is not organizational authorization.
  5. Data use: Check what connected information may be copied, stored, retained or used, including whether it may be used to improve models and who can access it. Check both the AI service and the connected service.
  6. Exit: Find where to review and revoke access in the account’s security or connected-app settings and in the AI tool. Revoking future access may not delete copies already retained; check the deletion policy separately.
  7. Need: Would manually providing a small, redacted, authorized excerpt be safer? If the benefit does not justify the exposure, decline the connection. If essential permissions or policies remain unclear, pause and ask the organization’s responsible person.

Worked example with fictional email

Maya wants a checklist for an imaginary community event. The fictional email says: “Budget ceiling $600. Two speakers to contact. Venue and date unconfirmed.” The tool requests ongoing access to read the whole mailbox and send messages. The checklist needs only those three sentences, so Maya declines the connection and pastes that fictional excerpt.

Prompt: “Using only these fictional notes, draft a checklist. Separate confirmed facts from items needing confirmation. Do not invent dates or commitments.” Maya checks that the output keeps the venue and date unconfirmed. No account is connected and no email is sent.

For a recurring authorized task, a limited connection could be reasonable if its access, retention and benefit are understood. If the tool cannot limit access enough, choose a safer workflow or seek approval before proceeding.

Decision activity for both paths

Do this on paper or in your notes; do not connect an account. A fictional volunteer group wants a weekly summary of three public event notices. Option A allows ongoing reading and sending across a mailbox. Option B, if supported, reads only a dedicated folder and has no send permission. Option C uses manually supplied public excerpts.

Choose an option and explain: what it can read and do; whether ongoing access is needed; whose authorization is required; what retention and revocation information you would check; and whether the time saved justifies the exposure. If information is missing, state what you would ask before deciding.

Review the decision activity

For just three public notices, C avoids unnecessary account access. B could be proportionate for recurring work after checking folder contents, organizational approval, retention, duration and revocation. A grants unnecessary send and mailbox access for a summary. “Read-only” reduces action risk but still exposes information. A strong answer explains the trade-off and pauses when a material permission or policy is unknown.

The action ladder

  1. Suggest: generate options; no external change.

  2. Draft: prepare the exact content or proposed change.

  3. Preview: show target, scope, content, cost, permissions, and likely consequence.

  4. Confirm: obtain explicit human approval for the exact action.

  5. Act: perform only the approved action with minimum access.

  6. Verify: confirm the actual result and retain a useful record or recovery path.

See it: from event draft to controlled action

UNSAFE

CONTROLLED WORKFLOW

Make prompts repeatable

  • Save the prompt, intended purpose, model or tool, date, and important settings.

  • Create a small test set with normal cases, difficult cases, missing information, conflicting information, and prohibited requests.

  • Score outputs against observable criteria such as factual grounding, instruction fit, completeness, privacy, and format.

  • Change one variable at a time and compare results.

  • Retest after a material model, tool, data, policy, or workflow change.

  • Record known limitations and the human fallback when the prompt or system fails.

SIMPLE PROMPT TEST LOG

Coconut challenge

Take one prompt that asks the AI to act. Move it one rung down the action ladder so a person can inspect the proposed change first.

Try it: practice the skill

What to do

  1. Choose the task suggested for this module, or use another simple, low-risk task.
  2. Open ChatGPT or another AI assistant in a separate tab or window.
  3. For this module, keep the AI at the draft or preview stage. Do not let it send, publish, buy, delete, or change access.
  4. Enter your prompt and send it. Do not include private or sensitive information.
  5. Read the AI answer.
  6. Return to this course and complete the short notes below.
    If you cannot use an AI assistant now, read the worked example and write what you would try later. Skip the steps that ask you to open, send or rerun a prompt. Label your notes "supplied example" or "planned test". Describe only what the example shows; if no output is supplied, write what you would look for. Keep checks you performed separate from checks you plan. Do not invent an AI result.
Path Your task
Everyday life Ask the AI to prepare a shopping or travel checklist, not to purchase or book.
Learning Ask the AI to propose a study plan, then have the learner approve it before reminders or calendar actions.
Work Convert send, publish, delete, or update into draft + preview + exact confirmation.

Module 8 test - check before you continue

Fast Track: answer Questions 1–3. Complete Course: answer Questions 1–4, writing a short response for Question 4. Then review the answer explanations for your path. Explain why your choice fits the situation, not just which letter you chose.

Your response stays in this page and is not saved or sent to RayAI.

1. Before an AI tool sends a message, what is the strongest control?
Review after attempting

Best answer: B. The person should see the exact content and recipient before a consequential external action.

2. An AI needs to summarize three public event notices. It requests ongoing mailbox and send access. What is proportionate?
Review after attempting

Best answer: A. For three public notices, manual excerpts avoid unnecessary access. A limited read-only connection may suit recurring authorized work after scope, duration, retention and revocation checks. Read access still exposes information; a prompt cannot remove send permissions.

3. Why maintain a small prompt test set?
Review after attempting

Best answer: B. Representative tests reveal whether a prompt works beyond one demonstration and whether behavior changes after revisions or model updates.

4. Turn one action-taking prompt into a preview-first workflow with a clear confirmation point.

Review after attempting

Your answer should describe a workflow that stops at a concrete preview and requires explicit approval tied to the exact target and action before execution.

Finish this module

Mark this module complete when you have attempted every activity you intend to complete and reviewed your work against the course guidance.