Hcode
Prompt Engineering

Advanced Prompt Engineering

2-4 hours 4 Modules

Overview

Main Theme: Prompt Engineering

Duration: 2 - 4 Hours

Level: Intermediate

Target Audience: Professionals requiring technical precision, auditors, analysts.

ABOUT THE TRAINING

This training teaches AI to "think" before responding, making it ideal for challenges that require logic, mathematics, or deep analysis. The focus is on developing structured prompts that drastically reduce AI hallucinations (errors), ensuring the confidence needed for using the technology in critical tasks where error is not tolerated.
Prompt Engineering Banner

Objective

Empower students to master methodologies that enhance accuracy and depth of responses, allowing the resolution of complex logical reasoning problems that go beyond text generation.

TRAINING MODULES

Module 01

Chain-of-Thought

Techniques to force AI to explain the logical step-by-step before delivering the final answer. This process ensures coherence in calculations and structured analyses.

Module 02

Prompt Chaining

Strategies to break down complex and extensive tasks into a sequence of 5 or more smaller, interconnected prompts. This prevents AI from losing context or getting confused along the way.

Module 03

Self-Consistency and Self-Correction

Implementation of verification techniques where the AI reviews its own work, identifies possible flaws, and corrects errors before presenting the result to the user.

Module 04

Legal and Financial Audit Laboratory

Practical application in real scenarios, such as analyzing contractual clauses and calculating financial liabilities. Use of logical structures to identify validity periods, waiting times, and penalty percentages in an automated and precise manner.

Additional materials

See how to structure an effective prompt using Chain-of-Thought and a step-driven approach.

Prompt sent:

You are a Legal and Financial Audit Specialist. Analyze the early termination clause of a 36-month logistics services contract. Think step by step to calculate the financial liability of terminating it today. Follow this structure:

  • 1. Identify the time remaining on the contract.
  • 2. Check whether the 12-month grace period still applies in the current month (month 14).
  • 3. Determine the correct penalty percentage based on the current date.
  • 4. Calculate the remaining financial balance.
  • 5. Apply the penalty percentage to the balance and present the final result in a structured form.

Generated result:

1. Identifying the remaining term
  • Total term: 36 months.
  • Current month: 14.
  • Calculation: 36 - 14 = 22 months still to run.
2. Checking the grace period
  • Clause 10.3 sets a 12-month grace period.
  • The contract is in month 14.
  • Conclusion: the grace period has already passed. The doubled penalty (60%) does not apply.
3. Determining the penalty percentage
  • Under clause 10.2, terminations outside the grace period take the standard 30% of the remaining balance.
4. Calculating the financial balance
  • Monthly fee: R$ 50,000.00.
  • Remaining months: 22.
  • Calculation: 50,000 x 22 = R$ 1,100,000.00.
5. Calculating the final penalty
  • Applying 30% to R$ 1,100,000.00.
  • Calculation: 1,100,000 x 0.30 = R$ 330,000.00.

Get in touch with our specialists

The names GPT-5 (OpenAI), Claude (Anthropic), and Gemini (Google) are mentioned only for informational and comparative purposes.