# Oracle with Asset tokenisation

Oracles can be used with asset tokenisation in workflows as triggers or action blocks (to fetch external data).

Learn more about [Workflow](/how-to/private-network/workflow.md)

#### <mark style="color:blue;">Trigger:</mark>

An oracle scheduler can be used as a [trigger](/how-to/private-network/workflow/triggers.md) to initiate a workflow. Every time the selected oracle scheduler fetches data from an external source, the workflow is triggered. To use oracle scheduler as a trigger.

1. Select workflow trigger type '**On Oracle Schedule**'
2. Then, select an oracle scheduler from list active oracle schedulers defined in the selected application's channel.

{% hint style="info" %}
To reference the oracle scheduler's response later in the workflow. Use variables - <mark style="color:orange;">`${input.`</mark>variablekey<mark style="color:orange;">`}`</mark>
{% endhint %}

<figure><img src="/files/KeNr0U07gKV6zdMXj9cZ" alt=""><figcaption></figcaption></figure>

#### <mark style="color:blue;">Action (get external data):</mark>

An oracle can be called from a workflow as an [action](/how-to/private-network/workflow/actions.md) block to fetch external data which can be used at any point in the workflow. To use oracle in workflow.

1. Select '**Add Action**' block.
2. In the select action type **'Get External data (oracle)'**
3. Based on the oracle param type, enter the arguments
   * if the param type is path : one key-value
   * if the param type is query: multiple key-values
   * if the param type is body: an input box for user to enter JSON, XML etc
   * if the param type is none: no arguments needed

{% hint style="info" %}
To reference the oracle action block's response later in the workflow. Use variables - <mark style="color:orange;">`${`</mark>oracleBlockName<mark style="color:orange;">.</mark><mark style="color:orange;">`output.`</mark>variablekey<mark style="color:orange;">`}`</mark>
{% endhint %}

<figure><img src="/files/Wd05rqK3juF4wf6EpQKk" alt=""><figcaption><p>GetGSTData is the get external data action block's name in the workflow</p></figcaption></figure>


---

# 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.spydra.app/how-to/private-network/oracles/oracle-with-asset-tokenisation.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.
