Prisma AIRS icon

Prisma AIRS

Scan AI prompts and responses for security threats using Prisma AIRS

Batch Scan

AI-generated

Summary

Initiates batch scanning of up to five AI content items (prompts, responses, or both) using Prisma AIRS, returning results for each item immediately or after polling.

Inputs

  • scanMode (required) — Selects synchronous (sync) for immediate results with a 2MB limit or asynchronous (async) for queued scans with a 5MB limit.
  • batchItems (required) — A collection of up to 5 items to scan. Each item specifies an itemType (prompt, response, or both) and the corresponding content.
  • additionalOptions.aiModel — The AI model identifier for metadata. Defaults to 'n8n-integration'.
  • additionalOptions.aiProfileOverride — Override the default AI profile using a profile name or UUID. If empty, the credential profile is used.
  • additionalOptions.applicationName — Application name for audit trails. Defaults to 'n8n-workflow'.
  • additionalOptions.environment — Environment identifier for tracking (optional).
  • additionalOptions.maxPollingDuration — Maximum time to wait for async scan results in milliseconds. Defaults to 300000 (5 minutes).
  • additionalOptions.maxRetries — Maximum retry attempts for failed requests. Defaults to 3.
  • additionalOptions.pollingInterval — Polling interval for async results in milliseconds. Defaults to 2000 (2 seconds).
  • additionalOptions.timeout — Request timeout in milliseconds. Defaults to 30000 (30 seconds).
  • additionalOptions.transactionId — Custom transaction ID for tracking. If empty, one is generated.
  • additionalOptions.userId — User identifier for audit trails. Defaults to 'n8n-user'.

Output shape

One output item per scanned batch item, containing the scan result, metadata, and workflow context.

For synchronous scans, results are returned immediately. For asynchronous scans, the node waits until the scan completes or times out based on polling settings. Each output item includes a 'batchIndex' and a 'transactionId'.

Examples

Example 1: Scan five prompts in parallel with immediate results

scanMode: Synchronous, batchItems: 5 items of type 'prompt' with content

Example 2: Scan a mix of prompts and responses asynchronously for larger content

scanMode: Asynchronous, batchItems: 2 items (one prompt, one response), pollingInterval: 5000ms

Example 3: Use custom audit details and a specific AI profile

scanMode: Synchronous, aiProfileOverride: 'production-profile', applicationName: 'MyWorkflow', userId: 'admin'

Discussion