# Form Features - Magic Fill

## Overview

{% hint style="info" %}
SharinPix **Magic Fill** allows you to automatically populate a **text field** with dynamic content generated from an image.\
Using an AI model, Magic Fill analyzes the image and produces text based on a **user-defined prompt**.

This configuration is available directly in the [**SharinPix Form Template Editor**](/forms/form-elements/sharinpix-form-template-editor.md).

This article covers the following:

* [How to configure Magic Fill on Text and Text Area Fields](#configure-magic-fill-on-text-and-text-area)
* [Demo of the Magic Fill feature with an Address Extraction Example](#demo-address-extraction-example)
  {% endhint %}

## Getting Started

### Configure Magic Fill on Text and Text Area

Magic Fill can be enabled for any Text or Text Area component inside a SharinPix Form.

1. In the **SharinPix Form Template Editor**, open the **Magic Fill** tab of the element.
2. Check the option **“Magic Fill”**.
3. Provide a **prompt** that instructs the AI on what information to extract or how to interpret the image.

The prompt is essential: it tells the AI what kind of text you expect from the uploaded image.

![](/files/OZjHph0yZ7TWFfLvKGue)

#### Examples of What Magic Fill Can Do

You can use Magic Fill to:

* Ask the AI to **describe** the image
* Extract **specific details** , such as a serial number, condition, or text written on a label
* Read information from **documents, tags, labels, or packaging**
* Parse structured content such as addresses, dates, or reference numbers

Magic Fill can be configured on a question element of type **Text Area** the same way as shown in the image below

![](/files/hgnoi5nw64WpOI1XlIwD)

### Demo: Address Extraction Example

This example demonstrates the Magic Fill feature within an **Address Extraction** scenario. When a user uploads an image of an address label or document, the **Address** field is automatically filled with the extracted address information.

![](/files/ihPADUjA76AMr4vc5GNk)

The example below shows a **Proof of Address** photo which has been taken and is going to be used by the **Address** text field that is not yet populated.

![](/files/pFxCY2ou7WTwYexMleOJ)

The diagram below shows the form after the **Proof of Address** has been captured. The **Address** field is automatically filled with the AI-extracted address based on the image and the configured Magic Fill prompt.

![](/files/X9X2anw3cHnQgHrh79nV)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sharinpix.com/forms/form-elements/form-features-magic-fill.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
