# FUNCTION node

Here's an overview of the function node configuration tab and some practical use cases:

['Function' node](/digital-agent/conversation-flow/nodes-explained/function-node.md) are versatile and can perform various tasks, including retrieving, posting, or manipulating information from backend systems. To see practical examples, refer to the chapter [Creating Your First Virtual Assistant](/digital-agent/building-new-projects.md).

{% hint style="info" %}
Learn more about smart funcitions here -> <https://smart.borndigital.ai/>&#x20;
{% endhint %}

{% hint style="warning" %}
We will update the UX/UI of the variable dialog in near future. Stay updated!
{% endhint %}

Within this overview of the ['Function' node](/digital-agent/conversation-flow/nodes-explained/function-node.md), let's explore two distinct types of using the function variable:

* **Smart Functions:** These are programmed to execute specific functions, such as retrieving a particular name, fetching specific data from your sources, or obtaining the current date.
  * **Example:** *'Now'* - a smart function that returns the current date.
  * **Example:** *'County'* - a smart function that tracks the number of times the ['Function' node](/digital-agent/conversation-flow/nodes-explained/function-node.md) is invoked (useful in ['Decision' node](/digital-agent/conversation-flow/nodes-explained/decision-node.md)).
  * **Example:** *'Value'* - represents a static value predefined within the node.

<figure><img src="/files/zwFPrd0i78fxRmhBn37B" alt=""><figcaption><p>Function node in nutshell</p></figcaption></figure>

Note the importance of the order of smart functions, as this dictates their execution sequence. Follow a 'first-things-first' approach to ensure the ['Function' node](/digital-agent/conversation-flow/nodes-explained/function-node.md) operates as intended.

{% hint style="info" %}
In this overview, the target node remains empty. Ensure you connect another node after the ['Function' node](/digital-agent/conversation-flow/nodes-explained/function-node.md) to continue the flow effectively.
{% endhint %}


---

# 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.borndigital.ai/digital-agent/conversation-flow/nodes-explained/function-node.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.
