When working with data in Agent.ai, you might find that the default output format isn’t always easy to read or interpret. This is especially true when dealing with structured data like tweets, JSON, or other complex information. In this guide, we’ll show you a simple but powerful technique to transform messy output into beautifully formatted, readable content.

Use ChatGPT to Create Better Formatting Prompts

Step 1: Identify the Formatting Issue

First, recognize when your Agent.ai output needs better formatting. If you’re looking at data that’s hard to read or doesn’t have clear visual organization, it’s time to improve the formatting.

Step 2: Ask ChatGPT to Generate a Better Prompt

Take your unformatted output to ChatGPT and ask it to create a prompt specifically designed for better formatting. For example:

“I have a list of tweets with data about the tweets, etc. It’s in a raw, non-human readable format. I’d like you to generate a prompt that’ll do two things:

  1. Generate a summary of the tweets
  2. Return each tweet in a readable form”

Then paste your unformatted output so ChatGPT can see what you’re working with.

Step 3: Use the New Prompt in Agent.ai

ChatGPT will provide you with a more detailed prompt that includes specific formatting instructions. It might look something like:

“I have a dataset of tweets in JSON format. Perform the following tasks:

  1. Generate a summary of the tweets
  2. For each tweet, reformat it so it looks like this: [Example of nicely formatted output]”

Copy this entire prompt and paste it into your Agent.ai editor, replacing your original prompt.

Step 4: Run Your Agent with the New Prompt

When you run your agent with the improved prompt, you’ll get much more readable output. For example, instead of jumbled text about tweets, you might get:

Summary of tweets: [Clear summary of main topics]

Most notable tweet: [Highlighted important tweet]

Tweet Details: Date: [Date] Content: [Tweet content] Retweets: [Number] Impressions: [Number]

Why This Works

This technique works because you’re leveraging ChatGPT’s understanding of what makes content readable to humans. By asking it to create a prompt with specific formatting instructions, you’re essentially getting expert help in crafting the perfect prompt for your needs.

The key is that ChatGPT often includes “one-shot prompting” examples in its suggestions, showing the agent exactly how you want the output to look.

Have questions or need help with your agent? Reach out to our support team or community.