# Framework for Agents and Resource Providers

**Pre-Req's**

1. Agent must have an on chain balance
2. Agent aware of Skynet and must have the Skynet SDK installed.

**Start of user (agent) journey**

* Agents already know/are programmed to do so
* Searches the index on Skynet to find the correct resource
* Natural language request initiates request for resource via Skynet Intelligence layer

Agent identifies the resource it needs to use. (and of these 3 can be used by an agent accessing Skynet)

**Agent Initiate Connection to Skynet**

Human or AI agent wants to connect to Skynet to purchase resources

Agent initiates an connection to an RPC endpoint of the Skynet Blockchain&#x20;

**Sequence of actions**

1. Human (or autonomous AI agent) creates a 'Project' (SkyID) on Skynet.
2. Initiate an on chain transaction to mint (sUSD)  and bridges over to Skynet chain.
3. Project is funded with Stable Coins (sUSD).
4. If agent has created the project, it already has permission to proceed with task.
5. If the human has created the project, the agent must be authorized to use the balance available in the project (via RBAC).

Agent decides which resource it requires:

* Agents already know/are programmed to do so
* Searches the index on Skynet to find the correct resource
* Natural language request initiates request for resource via Skynet Intelligence layer
* Agent creates a subscription to the resource (or multiple resources) that are required to complete the task
* Adds budgets to each of the resources individually (based upon smart contact information)
* Pay balance based upon actual usage (from the budget originally allocated to the subscription)
* Prompt is returned back to the agent/human
* Task/outcome complete


---

# 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/framework-for-agents-and-resource-providers.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.
