# Copilot

### Chat UI

Chat UI is excellent for general purposed QA. It's a conventional chatbot interface similar to ChatGPT

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

#### Examples

By default, Chat will have example questions you can ask the chatbot. Click any example to try it out

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

#### Session History

Your chat session will be saved and available for access anytime on the left navigation bar. You can create a new conversation by clicking the + New Conversation button.

Notice that context-aware conversation is only available if the Callable developer incorporates history in the Callable. All Callables created by Cortex Community will have history enabled.&#x20;

### Text Generation UI

Text generation UI is excellent for back-and-forth document editing. It resembles a rich text editor with AI helping you rewrite and generate paragraphs.&#x20;

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

#### Editing Field

This is the main editing field. You could manually edit paragraphs inside, or ask AI to write for you, and the generated paragraphs will show up inside as well.

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

#### Instruct AI to write

Use the instruction box on the right-hand side to tell AI what to write.&#x20;

You could ask: "write an email to my customer explaining how our pricing plan works." And click generate

![](/files/35N3jLdMVfzu8TVNBtBd)

#### Instruct AI to rephrase

To change a specific portion of your paragraphs, highlight the part you'd like to modify, write in the instruction box on how you'd like to modify it, and click Rephrase. This will replace your old highlighted texts with newly generated paragraphs.

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

Don't worry about inconsistency, the AI is context-aware, so it knows what're the paragraphs before and after the highlighted texts, and adapts the generated response accordingly.

### Save draft

Click the save button at the second left button corner. Saved edits will show up on the left navigation bar. You could click any saved edits to resume editing a previous version.

<figure><img src="/files/9p3Vwan659W1oFfHbPeO" alt=""><figcaption></figcaption></figure>

### Search UI (Coming Soon)

Search UI is excellent for finding relevant information from your unstructured documents. It resembles a search engine and includes a short summary of the information you are looking for

<figure><img src="/files/6mZyF1dDLJGqAYK36qz4" alt=""><figcaption></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.trycortex.ai/fundamentals/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.
