> For the complete documentation index, see [llms.txt](https://docs.spydra.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.spydra.app/how-to/private-network/oracles/oracle-with-asset-tokenisation.md).

# 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>
