Documentation Index
Fetch the complete documentation index at: https://docs.rako.sh/llms.txt
Use this file to discover all available pages before exploring further.
Attribution Flow
Rako attributes a conversion when an agent recommendation carries AAP context into the merchant checkout or conversion flow. The production model is deliberately boring infrastructure:1. Search
The agent asks Rako for eligible offers that match the user’s intent.2. Recommend
When the agent presents an offer, it records the recommendation.recommendationId. This is the attribution handle used at checkout.
3. Checkout
When the user chooses the offer, the agent initiates checkout with the session and recommendation.4. Convert
A conversion is recorded when Rako receives trustworthy evidence that the payable outcome happened. For instant checkout, that evidence is normally a payment webhook from the merchant’s payment processor. For longer-cycle verticals, the evidence can be a merchant-reported conversion plus milestones such asinstall_scheduled, service_activated, or first_bill_paid.
5. Settle
Conversions remain in the ledger through validation, refund, dispute, clawback, and settlement states. Once a conversion is eligible, Rako calculates:- merchant commission owed
- Rako network fee
- builder payout
- invoice and settlement status
Example: agent-recommended SIM checkout
- A user asks an agent for a cheap UK SIM with no contract and at least 10GB of data.
- The agent searches Rako and receives a SMARTY 30GB rolling monthly offer.
- The agent recommends SMARTY and records why it made the recommendation.
- The user says yes; the agent calls checkout and shows the returned checkout URL.
- The user pays on the PSP-hosted page.
- Rako receives a payment succeeded webhook from the merchant’s PSP with the AAP metadata.
- Rako records a verified conversion, calculates the commission split, and starts the validation period.