> For the complete documentation index, see [llms.txt](https://docs.sharinpix.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sharinpix.com/forms/form-elements/form-features-magic-fill.md).

# 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.

![](https://2647402409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRD1Xcn9HtKcyfQ9Ghyk%2Fuploads%2F1Vy9W7DxknirzZ3AWWCo%2FDOC%20SF%20-%201920%20x%201080%20\(6\).png?alt=media\&token=775f02f6-9d06-4412-929d-23c083c92e3b)

#### 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

![](https://2647402409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRD1Xcn9HtKcyfQ9Ghyk%2Fuploads%2FTcg45fDGBwkaRreCZNNU%2FDOC%20SF%20-%201920%20x%20480.png?alt=media\&token=c362a18c-3b83-400b-99c8-7bd32b913e2e)

### 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.

![](https://2647402409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRD1Xcn9HtKcyfQ9Ghyk%2Fuploads%2FR73cPWuQQ2QyT0esHshq%2FDOC%20Mobile%20-%201920%20x%201080%20\(2\).png?alt=media\&token=b5f9baca-e502-483a-acba-51582430fd6b)

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.

![](https://2647402409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRD1Xcn9HtKcyfQ9Ghyk%2Fuploads%2F7yFPfK1vaRK01yIw6RSM%2FDOC%20SF%20-%201920%20x%201080%20\(1\).png?alt=media\&token=a71df74c-1fa7-4824-9378-1bf4226f92e3)

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.

![](https://2647402409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRD1Xcn9HtKcyfQ9Ghyk%2Fuploads%2Fm3SVq54rjF6UijhIoUND%2FDOC%20Mobile%20-%201920%20x%201080%20\(1\)%20\(1\).png?alt=media\&token=6a90271d-7ca9-46f3-b8e5-1e105398768c)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
