> For the complete documentation index, see [llms.txt](https://gitbook.mor.lumerin.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.mor.lumerin.io/conceptual-architecture/session-flow.md).

# Session Flow

1. User selects model & receives endpoints from router.
2. User node pings endpoints to determine best provider & requests session with provider.
3. If provider accepts session request, User submits “open session” transaction to router.
4. User opens socket to provider & submits prompts.
5. Once done, User requests receipt from provider & submits receipt + User report to router to close the session.
6. Provider claims payment from router.

<figure><img src="https://3308714034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI4NwWDwlaNuESpL7X6pP%2Fuploads%2F7Hg8DXx6uADg2gMmtfme%2FScreenshot%202024-03-07%20at%2018.19.57.png?alt=media&amp;token=fd240449-2446-44b8-9fbb-d27995ccc683" alt=""><figcaption></figcaption></figure>
