---
title: "New topic in API doc course: AI document engineering with pattern-based prompts"
date: 2023-07-06
description: "See AI document engineering with pattern-based prompts. Sponsored var contents = new Array() //Paligo contents[0] = '<img..."
canonical_url: https://idratherbewriting.com/blog/ai-document-engineering-patterns
---

> For AI agents: a documentation index is available at https://idratherbewriting.com/llms.txt. Markdown versions of all pages are available by appending .md to any page URL.

# New topic in API doc course: AI document engineering with pattern-based prompts

> I added a new section to my API doc course on pattern-based prompts. Pattern prompting involves teaching the AI a specific structure or template, then having it populate information into that template. Pattern prompts are similar to few-shot prompts, but in this case, rather than having the language model populate the template with its own information, we’ll have it sort and structure a mess of information into the template, thus reducing hallucination and error.

See [AI document engineering with pattern-based prompts](https://idratherbewriting.com/ai/docapis_pattern_prompts.html).
