# KV Store

Having access to a low-latency key-value datastore is highly desirable for many workflow types. Especially so if you plan to build your app entirely on top of Wundaflow and do not maintain any of your own infrastructure.

Our native JavaScript Task has access to two types of KV Store:

#### Context KV Store (CKV)

This datastore only persists within the context of the current workflow. Data stored within the Context KV Store will therefore not be accessible from any other workflow run.

#### Global KV Store (GKV)

As the name suggests, this datastore is backed to disk and is accessible from any workflow run in your account. This is useful for storing data associated with contracts/wallets that's too large to keep on the blockchain, or things such as long-running atomic counters.

Additionally, the Global KV Store is also accessible from outside of workflows via API calls. This means that you can read and write data directly from your web2 application for use within your smart contract workflows.


---

# 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://docs.wundaflow.com/core-concepts/kv-store.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.
