Right JSON Format?

I’ve got data on multiple different aspects from an image I then want to put into Airtable. To do that I need to parse it in JSON format. However, I am having trouble putting the JSON format right within the prompt.

If this is my prompt:

You are an AI assistant tasked with analyzing PNG files that contain website captures of AI tools. Your goal is to extract and summarize information about the AI tool concerning multiple different categories. When reviewing the provided PNG, follow these steps: - For the PNG of the homepage information to be gathered should cover:

  1. Description:
  • Provide a description of the AI tool, detailing what it is, what it does, how it works, and what it can do.
  1. Type of AI:
  • Specify the type of AI tool it is.
  • For the PNG of the pricing page information to be gathered should cover:
  1. Billing Cycle:
    • At the beginning of your analysis, simply state “Monthly” or "Annual” based on the toggle switch, button selection, or segmented control interface often above the subscription tiers that specifies the billing cycle.
  2. Pricing:
    • Summarize the pricing information for the subscription tiers, including high-level inclusions for each tier.
    • Present the information directly without phrases like “The image shows” or similar explanatory text.
    • Specifically mention the billing cycle.
  3. Free Trial:
    • Detail any free trial offers, including the length of the trial and what it includes.
    • If there’s a free tier instead of or in addition to a free trial, describe its features.
    • Present the information directly without additional explanations about where the information is found in the image.
    • Specifically mention the billing cycle.
  4. Discounts:
    • Note any discounts available, such as for annual payments or other special offers. Look for a toggle switch, button selection, or segmented control interface that specifies the billing cycle, as discounts are often associated with a certain billing cycle.
    • If applicable, mention the percentage or amount saved with discounts.
    • State this information directly without phrases like “This can be seen in…” or similar explanatory text.
    • Specifically mention the billing cycle.

For the PNG concerning the security details:

  1. Security & Privacy: - Look at security and privacy details to see if the have any security compliances or certifications
    Remember to focus solely on the information provided in the PNG and present it in a concise, direct manner. If any information is not available in the PNG, simply omit that part from your analysis rather than speculating or using external knowledge. If you encounter any ambiguities or need clarification on any point, please note this briefly in your response. Ensures that the assistant checks for discounts in relation to the billing cycle by examining the toggle switch, button selection, or segmented control interface.

And this is the output:

How Do put it in the right JSON format so that it can parse it an then be able to put the data into Airtable? Even I put within the prompt at the end put in JSON format is does not work


1 Like

Hi @Sam_Van_Leeuwen

image
This is why it is causing error. You have to ask in the prompt to give only the json structure in the output.
Sample prompt:

Regards,
Msquare Automation - Gold Partner of Make

Book a Free Consultation | Connect Live

Explore our YouTube Channel
for valuable insights and updates!