# AI prompt optimizer

Improve an existing AI prompt so the task, context, constraints and output format are clear and testable.

Canonical page: https://aismarty.com/tools/ai-prompt-optimizer

## Purpose

Rewrite a prompt that gives inconsistent or vague results. The optimizer returns an improved prompt with a clear role, task, context, constraints, output format and fallback instruction, followed by a short list of what changed and why.

## How to use this tool

1. Paste the prompt you use today and describe the result you want from it.
2. Note any problems you have seen, such as invented facts or ignored formatting.
3. Choose Generate, then test the improved prompt with a few real examples before adopting it.

## Example inputs

- Current prompt: Write a reply to this customer.
- What the prompt should achieve: A short, polite reply to a customer asking to move a booking, using our policy only.
- Problems you have seen: Replies are too long and sometimes promise refunds we do not offer.

## Limits and what to check

Run the improved prompt and the original side by side on the same inputs. The optimizer cannot see your data or model settings, so keep any detail it marks as a placeholder accurate before use.

## Frequently asked questions

### What does the optimizer change?

It clarifies the task, adds missing context and constraints, defines the output format and lists what the model should do when information is missing. It also explains each change so you can keep or reject it.

### Will the improved prompt always work?

No prompt guarantees accuracy. Test it with representative inputs, including awkward ones, and compare the results with your original prompt.

### What goal should I give the optimizer?

Describe the result the prompt should produce and who will use it, such as a weekly summary for a sales team. The rewrite is aimed at that goal.

### Should I paste the problems I have seen?

Yes. Describe what goes wrong, such as answers that are too long or ignore the format. The rewrite targets those problems directly.

## Related tools

- [AI answer generator](https://aismarty.com/tools/ai-answer-generator)
- [AI FAQ generator](https://aismarty.com/tools/ai-faq-generator)
- [AI email response generator](https://aismarty.com/tools/ai-email-response-generator)
- [All tools](https://aismarty.com/tools)
