Skip to main content

Enhance prompts

The Enhance prompt button in the Agent Builder lets you automatically improve any step’s natural‑language instructions in a single click. From a step that accepts a prompt, click Enhance to have Glean review your text, apply embedded prompting best practices, and generate a refined version tailored to the step’s objective. This capability is now part of the “create your first agent” experience and should be visible when you edit a step’s prompt.

What it does

  • Applies consolidated, field‑tested prompting best practices directly to the step you’re editing, producing a higher‑quality prompt automatically.
  • Works across steps that accept free‑form instructions, so you can raise quality consistently as you build out your flow.
  • Includes a safe “undo” action: if you don’t like the change, restore your original text instantly.

Why it matters

  • Faster time‑to‑value: reach usable agent quality sooner with less prompt tinkering.
  • Higher outcome quality: improved step‑level prompts raise task success rates and reduce errors.
  • Broader adoption: non‑experts can build effective agents by leveraging embedded best practices.

How to use it

  1. Open your agent in the Agent Builder and select a step that accepts a prompt. Click Enhance prompt.
  2. Review the improved text. If it looks better, keep it. If not, click Undo to revert to your original prompt.
  3. Continue editing additional steps, then select Save when you’re ready to apply your changes.