Extract key information from documents

  • Release version: Australia
  • Updated August 7, 2026
  • 1 minute to read
  • Use key information extraction (KIE) to extract structured data from documents with a predefined template, for processing standardized documents such as invoices, contracts, or forms.

    Before you begin

    Before using KIE, verify that a use case (task definition) is created and configured for your document schema. Have the task definition name, the names of the keys to extract, and either the sys_id of the task definition or search terms that match its name.

    Role required: sn_aia.admin

    About this task

    Use KIE when you:

    • Have a predefined task definition (template) for your document type.
    • Want to extract specific, structured fields consistently.
    • Are processing multiple documents of the same type.
    Note:
    If you request an extraction, for example "extract X and Y," without providing a task definition, the agent treats the request as a question-and-answer (QnA) request instead.

    Procedure

    1. Configure the Content Insights AI agent.
      For more information, see Configure Content insights AI agent.
    2. Open the ServiceNow Otto panel or ServiceNow Otto for Virtual Agent.
    3. Start the AI agent by entering an initial message.
      Include the document that the agent should process.
    4. Specify the task definition.

      Provide the task definition sys_id for the fastest processing, or use search terms that match your task definition name. For example:

      • Extract the values in the attachment of incident INC001234. Use task definition sys_456.
      • Extract data from attachment sys_123 of record INC001234. Use task definition sys_987.

      If you don't provide a task definition, the agent prompts you for a sys_id or search query. For example, entering Extract the values in the attachment of incident INC001234 causes the agent to ask for a task definition before proceeding.

    5. Confirm the task definition when prompted.
      When the agent displays search results, confirm which task definition to use before extraction proceeds.

    Result

    The agent displays the extracted values and provides a link to the full extraction results. Processing time varies with document size and schema complexity.