--- title: "Configuring Multimodal AI Data Extraction" slug: "configuring-ai-extraction-rule" description: "Learn to configure, deploy, and manage Multimodal AI Data Extraction rules for seamless data transmission and analysis within your system workflow." updated: 2026-08-31T09:10:37Z published: 2026-08-31T09:10:37Z canonical: "documentation.encodify.com/configuring-ai-extraction-rule" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.encodify.com/llms.txt > Use this file to discover all available pages before exploring further. # Configuring Multimodal AI Data Extraction This guide provides an end-to-end operational overview of how to configure, deploy, and manage the Multimodal AI Data Extraction rule within the platform. This advanced functionality enables your system to transmit structured text data and media files from specified modules directly to an artificial intelligence service, subsequently capturing and recording the analytical results back into your system workflow. ## Rule Configuration The configuration is divided into five primary configuration steps. ### Step 1: Basic Info and Triggering Conditions Defines the rule's identity and the specific trigger criteria. | Field | Description | | --- | --- | | **Name** | Enter a unique name for the rule (e.g., "Product Description Extraction"). | | **Description** | (Optional) Briefly explain the purpose of this AI-based extraction. | | **Active Toggle** | Ensure this is switched ‘On’ for the rule to run. | | **Type** | Select **Multimodal AI Data Extraction** from the dropdown. | | **Sort Order** | Determines the priority if multiple rules are triggered simultaneously. | | **Module** | Select the primary module (e.g., Products) that will trigger the extraction. | | **IF Condition** | Set the criteria that must be met for the rule to be executed. | ### Step 2: Fields from Main Item Identify which specific field data from the main item should be sent to the AI. | Field | Description | | --- | --- | | **Analysed Module** | This defaults to the module selected in the **Conditions** section. | | **Analyse Data in Fields** | Click **Add Field** to specify the field data you want the AI to evaluate and extract from. It is also possible to select **File** fields and define whether the original file or its rendition should be sent for extraction. | ![Interface for calling AI with product title and description fields highlighted.](https://cdn.document360.io/3a63e0a8-1221-4570-aaa1-d43f9b95a612/Images/Documentation/Form with fields to analyze.png) Form with fields to analyse ### Step 3: Fields from Linked Modules Select additional data from linked modules to be sent to the AI. | Field | Description | | --- | --- | | **Linked Module** | Select the linked module. Note that only modules with module links to the main module can be selected. Direct links from the main module to linked modules are not supported. | | **Link Field** | Identify the field that connects the two modules. | | **Filter by Field/Values** | (Optional) Narrow down which linked items are sent (e.g., only items where Status is "Available" or "Ready"). | | **Analyse Data in Fields** | Select the field(s) to send. | | **Media Holder** | For file fields, specify if the original file or rendition is sent for extraction. | ![Configuration settings for linked modules, including content and product status filters.](https://cdn.document360.io/3a63e0a8-1221-4570-aaa1-d43f9b95a612/Images/Documentation/Linked Module.png) Adding fields from the Linked Module(s) ### Step 4: AI Instructions Defines the exact directive and analytical framework communicated to the AI. | Field | Description | | --- | --- | | **Prompt for AI** | Utilise the rich text editor to compose clear, concise, and unambiguous instructions. The prompt input field natively supports Markdown formatting for enhanced structural clarity. | | **Example High-Level Directives** | "Analyse the provided product title, product description and the attached product images. Write an improved description based on the product title, description and images in fluent, professional English. Target name: must include product name, length 20-40 characters.Target summary: must include product description, length 50-100 characters." | | **Enable Grounding** | When enabled, the AI may use external search results to supplement the assessment. | > [!WARNING] > When extracting data, generative AI models can occasionally suffer from "Conversational Drift"—returning chatty filler text instead of raw data. To prevent this, explicitly list your target fields in the prompt along with strict character or formatting constraints. | > It is recommended to use Google [Gemini](https://gemini.google.com/) or [AI Studio](https://aistudio.google.com/) to develop solid prompts before adding to the Encodify platform. Other Generative AI platforms might yield similar results. ![Instruction text area for AI call with formatting options visible above the text box.](https://cdn.document360.io/3a63e0a8-1221-4570-aaa1-d43f9b95a612/Images/Documentation/Prompt.png) Instruction text input area for AI prompt creation in a document editor. ### Step 5: Storing the Results Define how the AI's response should be stored. | Field | Description | | --- | --- | | **Storage Method** | Choose between **Save in Current Item** or **Create Inline Item**. | | **Status Field Mapping** | Map the statuses to your main module's field options so you can track progress (e.g., Map "*In Progress*," "*Completed Successfully,*" and "*Failed*"). | AI’s output field mapping is the same regardless of which save method is selected. Saving to a separate module will require the module and the linked field specified. | Field | Description | | --- | --- | | **Target Field(s)** | Select the specific module fields (e.g., text, numeric, or date fields) where the extracted data values will be recorded. | | **Status Code & Error Message** | Vital for troubleshooting failed calls. | ![](https://cdn.document360.io/3a63e0a8-1221-4570-aaa1-d43f9b95a612/Images/Documentation/target module.png) Mapping of fields in target module and Status field values ## Rule Execution Logic This rule does not, contrary to other rules, have a subtype or event that triggers it. Instead, it is governed by the following logic: | Logic Component | Description | | --- | --- | | **Action Trigger** | Execution is triggered by a Create or Update action on the main item within the selected main module. | | **Status Gatekeeper** | The rule will only run if the mapped **Status** field value does not equal the options mapped as "In Progress," "Failed," or "Completed Successfully." This prevents infinite loops. | | **Filter Match** | The item must meet the specific criteria defined in the Conditions section (if any). | Once triggered, the item status will shift to "In Progress" until the AI service returns the data to the mapped result fields. Successful assessments will set the main item’s status to the option mapped as “Completed Successfully“. ![Product information for freeze-dried mangoes, including price and extraction status details.](https://cdn.document360.io/3a63e0a8-1221-4570-aaa1-d43f9b95a612/Images/Documentation/image-1788167393026.png) Example of the main item with the linked extracted result and successfully completed status. ## Technical Limitations and Troubleshooting To ensure seamless execution, prevent infinite loops, and avoid file evaluation failures, all AI automation rules must operate within specific technical boundaries. All guidelines regarding **payload constraints**, **status gatekeeping**, **race conditions**, **file naming, etc.** are centralised in our [foundational documentation](/v1/docs/generate-ai-based-rules).