# How AI Agents Spend

The below sequence outlines how AI agents spend and acquire tools and services on Skynet.

START

1. AI agents or humans create a 'Project' (SkyID) on Skynet.
2. The project is funded with sUSD.
3. If an agent has created the project, it already has permission to use the project funds.
4. If the human has created the project, the agent must be authorized to use the balance available in the project through RBAC.
5. Based on intelligence and natural language interactions, it is determined which tool (or services) are required to complete a prompted task.
6. Agent requests the tool it requires.
7. The agent creates a subscription to the tool (or multiple services) required to complete the task.
8. Agent adds budgets to each of the tools individually.
9. The requested tools and services are provided.
10. The agent pays the balance based on actual service usage from the budget allocated initially to the subscription.
11. The prompt is returned to the agent/human with the outcome or task completed.

END.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.skynet.io/skynet/skynet-protocol/payment-rails/how-ai-agents-spend.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
