Document AI
...
Multi-Agent AI with Custom Con...
Precision Prompting
ai agents are incredibly powerful, but their effectiveness depends on the instructions they receive vague or generic prompts can lead to incomplete, inaccurate, or business irrelevant outputs, and different industries have unique requirements this highlights the need for a systematic approach that ensures ai outputs align precisely with business objectives precision prompting lets businesses provide ai with custom instructions, rules, and formatting guidelines to control tone, detail, and output style, apply business specific rules (like currency conversion or bullet point summaries), and ensure consistent, reliable results across documents this makes every ai interaction business ready and precise cloudfiles document ai empowers this approach through its flexible flow actions the docid 31ujx1ligtkwfkjuanbzt action prepares documents for ai processing, making them ready for querying and analysis you can fine tune how documents are handled by specifying the following optional inputs instructions – these act as the foundation for effective prompting by supplying context during processing, like which sections to focus on, expected formats, or key fields, cloudfiles document ai interprets documents with higher accuracy this ensures that when you later run a prompt, the ai is already primed to deliver precise, structured results for more information refer to the article process document using ai docid 31ujx1ligtkwfkjuanbzt the query document docid\ dm3eh gzaocyoqd5y0r8d action lets you run natural language prompts to extract, classify, or generate information from already processed documents query you can guide ai using natural language prompts to extract, classify, or generate information from processed documents clearly defining formats , units , or detail levels helps the ai avoid ambiguity, produce structured outputs, focus on relevant data this enables consistent, accurate results and supports complex workflows where multiple queries can be combined in a controlled, repeatable manner example in this example, we guide the ai with clear processing instructions and a query defined with a strict output format exception handling is also included to ensure the extracted data is accurate, structured, and directly usable from the document processing instructions " you are an ai agent specialized at extracting data from driver's license or passport your task is to accurately extract structured data from the document the common components you should recognize and extract include document type, document number, full name of the document holder, date of issue, date of expiry " query " identify the type of kyc document provided (e g , passport, driver's license) extract the following fields from the document document type (e g , 'passport', 'driver's license') document number full name of the document holder date of issue (in yyyy mm dd format) date of expiry (in yyyy mm dd format) return only the structured json in this exact format { "kyc document type c" "", "kyc document number c" "", "kyc document holder name c" "", "kyc document issue c" "", "kyc document expiry c" "" }\n if any field is missing or unreadable, return its value as null only return the json object and nothing else " the ai output as tested on the above sample document is as follows { "kyc document type c" "driver's license", "kyc document number c" "64040738293", "kyc document holder name c" "kowalski jan", "kyc document issue c" "2019 03 06", "kyc document expiry c" "2028 01 18" } for more information refer to the article query document docid\ dm3eh gzaocyoqd5y0r8d the split document using ai docid\ muam8ohdl70xumq9pmt96 action uses ai to automatically separate merged pdfs into individual documents for easier processing instructions define how documents should be interpreted and split use contextual cues to improve accuracy for varied formats example " this is a bundle of scanned purchase orders each purchase order starts with a bold header containing the name of the company or its logo split at each occurrence of this pattern and name them as the name of the company " specific instructions can guide the ai, improving the accuracy of the split for more information refer to the article split document using ai docid\ muam8ohdl70xumq9pmt96 these features make cloudfiles document ai relevant across industries in finance , prompts can enforce formatting rules such as ₹ currency, decimal precision, and iso standard dates, ensuring invoices are summarized with line items and totals in bold for faster audits in legal applications, ai can extract and summarize clauses with their section references, returning outputs like “ clause number + summary ” for compliance checks, making review processes more efficient and reliable by combining precision prompting with cloudfiles versatile ai flow actions, businesses can ensure that ai interactions are precise, consistent, and aligned with their unique operational requirements, turning raw document data into actionable insights efficiently