AI Reconciliation Engine
Raw bank narrations are notoriously unstructured. A payment meant for “School fees for JSS3 second term” might arrive with the narrationTRF FROM JOHN ADEWALE/fees. Avenue’s AI engine transforms these raw strings into structured, actionable data.
How it works
When a payment arrives at a wallet, Avenue passes two things to GPT-4o:- The raw narration from Nomba (
raw_narration) - The wallet’s system_prompt — a description of the wallet’s purpose that you set at creation time
Confidence score
The confidence score (0.0 to 1.0) reflects how certain the AI is about its intent extraction.
The threshold (
0.75 by default) is configurable via your environment variable AI_CONFIDENCE_THRESHOLD.
Flags
The AI can set flags on a transaction:
Flags are surfaced in the
avenue_intelligence object in your webhook payload and on the transaction detail page.
Fallback: Suspense
If the confidence score is below threshold, or the AI call fails, the payment does not get credited to the wallet. Instead, aSuspenseItem is created with:
- The full raw Nomba payload
- The reason (
AI_LOW_CONFIDENCE) - The original amount