Output Formatting

By the Syncfusion DevTutorials team · Last updated

Control the shape of the AI's answer: set the length with a number, ask for lists, tables or sentences, show an example of the style you want, and say what to leave out.

Tom's Webinar Post

Tom works in Marketing at Kestrel. The company is running a free webinar next month, and Tom needs a LinkedIn post to promote it. He types a one-line prompt and waits for the result.

Look at what came back.

  • The post is far too long.
  • It contains nine hashtags.
  • It uses emojis and marketing hype.
  • Words such as "game-changing" and "unmissable" appear throughout.
  • After all that, the webinar date is still missing.

The AI was not trying to be difficult. Nobody told it how long the post should be, what structure it should use, or what style was acceptable.

In simple words: Format is the F in CRAFT. If you do not specify the length, shape, and style, the AI decides for itself.

TL;DR

  • Format controls the shape and size of the answer.
  • Set the length using numbers such as "under 60 words", "3 bullet points", or "2 sentences".
  • Set the shape by asking for bullets, a table, a numbered list, a subject line, or paragraphs.
  • Name the columns when you want a table.
  • Show an example when the style is difficult to describe.
  • Tell the AI what to leave out, such as hashtags, emojis, or hype words.
  • Clear formatting instructions produce more predictable results.

A Real-World Example

Imagine you ask a colleague for a summary of a meeting.

You wanted three short points for your manager. Instead, they send you two full pages.

They did nothing wrong. You never explained how long the summary should be or who it was for.

If you had said:

"Give me three bullet points I can paste into a Teams message."

you would probably have received exactly what you needed.

AI works the same way. Words like "summary", "email", and "post" describe the task, but they do not describe the structure. You need to provide that information.

What You Will Learn

In this lesson, you will learn:

  1. How to control the length of an answer.
  2. How to choose the right shape for the result.
  3. How to create tables with the correct columns.
  4. How to use examples to control style.
  5. How to tell AI what to leave out.

Length and Shape

Set the Length With a Number

Words such as "short" and "brief" mean different things to different people.

A number is much clearer.

Examples:

  • Under 60 words
  • Exactly 3 bullet points
  • 2 sentences
  • One sentence per item
  • 5 ideas

In simple words: If you want something short, say exactly how short.

Same Facts, Three Shapes

The box below contains webinar information and asks for a two-sentence summary.

Send it.

Then ask for the same information again:

  • As 3 bullet points
  • As a table with two columns: Detail and Value

The facts did not change. Only the format changed.

One short instruction about shape completely changed the result.

Which Shape Should You Choose?

If you need...Ask for...
A quick update2 or 3 sentences
Something easy to scanA bulleted list
Steps in orderA numbered list
Side-by-side comparisonA table
An emailA subject line and a word limit

Easy way to remember: Use a number for the length and a word for the shape. For example: "3 bullet points", "Under 60 words", or "A table with columns Vendor, Price, and Delivery".

Show an Example

When Style Is Hard to Describe

Sometimes you know exactly what you want, but it is difficult to explain.

For example:

  • "Professional but friendly"
  • "Modern but not casual"
  • "Engaging but not sales-heavy"

Different people interpret those phrases differently.

Instead of describing the style, show an example.

Paste a previous piece of content and tell the AI:

"Match the style and length of this example."

Tom already has a past LinkedIn post that the team liked.

Press Send below.

One example communicated several expectations at once:

  • Short length
  • Simple wording
  • Limited formatting
  • No excessive hashtags
  • Link at the end

A good example can often explain style more clearly than a long description.

The AI copies the style of an example, not necessarily the facts. Always provide the new facts as well.

Say What to Leave Out

Exclusions Are Part of Format

Telling AI what you do not want can be just as important as telling it what you do want.

Common examples include:

  • No hashtags
  • No more than 2 hashtags
  • No emojis
  • No marketing hype
  • Do not mention pricing
  • No greeting or sign-off
  • No jargon

Send the message below.

Then follow up with something like:

"Rewrite it with no hashtags, no emojis, and no hype. Keep it calm and professional."

The facts stayed exactly the same. Only the unwanted elements disappeared.

Fix Tom's Post

Now rewrite Tom's LinkedIn post properly.

Use the facts from What you know.

Then specify:

  • The length
  • The structure
  • The number of hashtags
  • The style

Compare the result with Tom's first attempt.

The webinar is the same. The facts are the same.

The difference is that the format instructions are clear, so the result is much closer to something Tom could publish immediately.

Small AI models sometimes miss word limits by a few words. Always check anything with a strict limit, such as a text message, subject line, social media post, or web form field.

Common mistakes

MistakeWhat HappensHow to Fix It
Asking for "short" without a numberThe answer may still be too longUse a word count or bullet count
Asking for a list without specifying the number of itemsYou get more items than expectedState the exact number
Asking for a table without naming the columnsAI invents its own column namesSpecify every column
Using vague style descriptionsAI interprets them differently from youProvide an example
Forgetting exclusionsUnwanted hashtags, emojis, or hype remainState what should be left out

Exercise

Complete each task below and then press Check.

AI answers often use Markdown formatting such as headings, bullet points, and bold text. If you want to understand or clean up that formatting, see the Markdown lessons in the Markdown for AI-Native Development course.

What to Remember

  • Format controls the length, shape, and what should be left out.
  • Use numbers to control length.
  • Name the structure you want.
  • Name every table column.
  • Use examples when style is hard to describe.
  • Tell AI what should be excluded.
  • Better formatting instructions lead to more predictable answers.

Key Takeaway

Good formatting reduces surprises.

When you tell the AI exactly how long the answer should be, what structure it should use, and what should be left out, you spend less time editing and more time using the result.

Next: Follow-Up Prompts