# Flowscript Copilot

{% hint style="info" %}
***To use FlowScript Copilot, please upgrade the Designer to version 1.0.0.149 or later***
{% endhint %}

FlowScript Copilot offers a Copilot-like experience specifically tailored to FlowScript, enabling users to:

1. Contextually aware, **FlowScript Copilot** is capable of handling conversations by retaining context from previous questions and answers.
2. FlowScript Copilot can interpret the user intent and provide a solution to the problem.
3. Access **syntax explanations** and **code examples**.
4. Use **"copy-paste" functionality** for code snippets.
5. Receive **real-time responses** to FlowScript queries.
6. Get **FlowScript function suggestions** as potential solutions to problems.
7. Provide feedback for continuous improvement.

To find Flowscript Copilot open Designer and click "Tools" and choose "FlowScript Playground"<br>

<figure><img src="/files/4kHoJ1TaVfmYDIL5hZJv" alt=""><figcaption></figcaption></figure>

In Playground, launch the Flowscript Copilot by clicking the **Magic button**.<br>

<figure><img src="/files/2eZ8YTaJjQlXlo7gAcX3" alt="" width="255"><figcaption></figcaption></figure>

To start a conversation, ask questions related to FlowScript code. The Copilot can only respond to FlowScript-specific questions. It will explain how to solve the problem and provide a ready-to-use code snippet that you can copy and paste into the Playground and run it. If code is correct you will get the output in the Playground.

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

If the code is incorrect, it will be highlighted in the Playground, and an error message may appear with an explanation.

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

The Flowscript Copilot maintains the context of the conversation (up to 10 messages), allowing it to handle follow-up questions related to the same use case. To clear the chat history, click the brush icon.

<figure><img src="/files/f42DIabtKC2BohLH6PG4" alt="" width="375"><figcaption></figcaption></figure>

The FlowScript Copilot can generate both code examples and complete functions. To verify that a function solves your problem, it's recommended to declare the necessary variables in your prompt.

Have feedback? Use the feedback icon in the app to let us know what you think.


---

# 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.novacura.com/flow-connect/reference/reference/flowscript-copilot.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.
