> For the complete documentation index, see [llms.txt](https://help.inteliwise.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.inteliwise.com/quick-guide-to-creating-voicebots.-1/how-to-create-a-voicebot/how-to-set-up-the-needed-data.md).

# How to set up the needed data?

In our Conversation Flow Scenario ![](https://lh4.googleusercontent.com/BK-0TJdEC-M8eOcuyDkiFaXe1ISq4NO__83EhE2X5mO8f0lE5ezqVgoxEh4oPSdhQdp6FFkBvfEKvuNEil0zUxJyCXqsxjyWdrXd94BxZh71Df9au9P-_HksXQsE-TRxDEaTHoaw)we want a voicebot to confirm a dental appointment. In real life, we would set up an API option in the Start call or use an API block to get the data from your dentist’s IT system.

{% hint style="info" %}
In our case, we are going to fake it. And we will teach you some useful things in the process.
{% endhint %}

### The [Custom JS](/what-can-you-do-with-inteliwise-blocks/custom-js-where-to-insert-a-custom-code.md) block allows adding custom JavaScript code that can do magic.

It sounds like this is a solution only for programmers.&#x20;

No! :no\_entry:&#x20;

If you know a few tricks:man\_juggling:,  you can reuse ready-made code snippets. You can copy them and use them.

![](/files/-M_ypgAmEhnh20TDmYyF)

So, let us now simulate, that the voicebot received your data from the dentist’s IT system. We will set this data manually.

Set a global variable that stores names so the voicebot knows your name.&#x20;

{% code title="" %}

```javascript
globals.first_name = ”Anna Gregorczyk”
```

{% endcode %}

> *My name is Anna Gregorczyk, so I place this name in our example.*

{% code title="" %}

```javascript
globals.date = new Date(2021,05,26,15,30) 
```

{% endcode %}

> I also set the date of the dentist appointment, which has been planned for 26 of June 2021 at 15:30.

{% hint style="danger" %}
**Notice** that in Java Script, months are counted from 0, so January is 0, and 05 is June (**not** May!)
{% endhint %}

You must remember to put `return out1()` as the last line of the code. This makes the [Custom JS](/what-can-you-do-with-inteliwise-blocks/custom-js-where-to-insert-a-custom-code.md) block return its output to the next block.

{% hint style="warning" %}
Remember to connect the Start Call block to the Custom JS block by a [connector](/quick-guide-to-creating-voicebots.-1/how-to-create-a-voicebot/how-to-add-blocks-and-connectors-and-how-to-remove-them.md)!
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.inteliwise.com/quick-guide-to-creating-voicebots.-1/how-to-create-a-voicebot/how-to-set-up-the-needed-data.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
