AI Analyze Image

The AI Analyze Image feature enables the bot to read and extract information from images provided by users, such as receipts, price lists, printed documents, or images containing text. This feature is especially useful for automation tasks like data entry, order verification, or fast and accurate customer support.

Common Use Cases:

  1. Extracting information from invoices or receipts:

Users send a photo of a receipt → AI analyzes it → Returns the invoice number, total amount, date, etc.

  1. Reading data from printed documents or screenshots:

Useful for storing data from photos of physical documents without manual input.

  1. Analyzing images containing customer information:

For example: registration forms, handwritten orders, etc., making data management easier.

Example:

User:

Sends a photo of a purchase invoice

Bot (AI Image Analyze):

Invoice number: #12345678 Total amount: 2,450,000 VND

Setup Steps:

Step 1: Create basic processing blocks

  1. "question" block

Receives the image from the user and saves it to the attribute {{question}}.

  1. ChatGPT Analyze Image block

Create a new block → Integrate AI → ChatGPT

  • Category: Analyze Image

  • Model: GPT-4o-mini

  • Message send to OpenAI:

Extract the invoice number and total amount from: {{question}}

  • Save response value to attribute: {{answer}}

  1. "answer" block

Displays the Analyze result to the user (e.g., invoice number, total amount).

  1. "failed" block

Displays an error message if the image is invalid or the AI fails to analyze it.

Flow Diagram Overview:

  • Flow:

  • User sends an image of an invoice → saved to question

  • Sent to ChatGPT (model GPT-4o-mini) for Analyze → extracts invoice number and total amount → saved to answer

  • Displays Analyze results from answer to the user

  • If an error occurs → redirect to failed block to show a fallback message

Tips:

  • Encourage users to upload clear, sharp images that are not blurry or cropped.

  • The prompt can be customized to extract additional information such as date, item details, taxes, etc.

See also:

  • Integrated in ChatGPT and Gemini AI to analyze uploaded images and respond accordingly.