> ## Documentation Index
> Fetch the complete documentation index at: https://docs.newly.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Chatting with the agent

> Send messages, stop or queue work, and answer the agent's questions in Newly.

You build your app by chatting with the agent in Newly, at app.newly.app.

## Send a message

1. Type what you want in the prompt box.
2. Press **Enter** to send. Press **Shift+Enter** to start a new line.

Write in any language. The agent replies in the language you write in, and keeps the code itself in English unless you ask otherwise.

For how to phrase requests, see [Prompting tips](https://docs.newly.app/build/prompting-tips.md). To attach screenshots or files, see [Screenshots and files](https://docs.newly.app/build/attachments-and-voice.md).

## Which AI builds your app

* **Chats** use **Newly Agent** unless you pick another model. Chats run in the cloud. Newly chooses the model behind Newly Agent and may change it. To use a different model, open the model menu in the message box. Each model shows what it costs in credits compared with Newly Agent.
* **Migrated projects:** while a project moved from the old Newly is free to use, premium models (GPT-6 Astra, Claude Fable and Claude Opus) aren't included. The project card lists any excluded models. Those chats use Newly Agent until the free period ends.

## While the agent works

The send button turns into a stop button, and a status line shows what the agent is doing and how long it has been working, for example "Building the app". After about 10 seconds, the status line adds "You can stop safely: completed work stays saved."

To see the code the agent wrote, expand a step in the chat. Steps that create or change a file show the code or the diff, with the file path at the top.

### Stop a turn

Press the stop button to end the current turn. The chat itself stays open, and your next message continues from where the agent stopped. The stopped reply is marked "Stopped - completed work is saved".

Closing the browser tab doesn't stop the turn. The agent keeps working in the cloud. When you come back, the chat shows the turn still running or finished.

## Queue more messages

You don't have to wait for the agent to finish. While a turn runs, the prompt box reads "Add to queue...".

* Messages you send now wait in a queue. A chip above the prompt box shows how many, for example "2 messages in queue".
* Queued messages run one at a time, in order. Each one runs in the mode you picked when you sent it. See [Build, Plan and Ask](https://docs.newly.app/build/modes.md).
* Open the chip to see the queue. You can remove any message that hasn't started.
* Stopping a turn also pauses the queue, and the chip shows the queue as paused. Choose **Resume** to continue with the queued messages, or **Discard** to drop them. If you send a new message instead, it runs first and the queue continues after it.

> [!WARNING]
>
> Queued messages that haven't started yet are kept only in the open browser tab. If you close it, those messages may be lost. Copy anything important before you close.

## Answer the agent's questions

Sometimes the agent needs a decision before it can go on, for example whether other people should be able to sign in and see the same data. When that happens, the prompt box turns into an answer panel:

* A label such as "1 of 3" shows which question you're on. Use the back arrow to return to an earlier one.
* Pick one of the offered answers, or write your own in "Type your answer…".
* Press **Skip** if you don't want to answer that question.

The normal prompt box comes back after you answer or skip. Time the agent spends waiting for your answer doesn't count toward the [three-hour turn limit](https://docs.newly.app/build/sleep-and-limits.md).

## Copy, delete and other chat actions

* **Copy a message:** hover over it and use the copy button.
* **Copy chat history:** in the chat's options menu.
* **Delete chat:** in the chat's options menu. See [Delete a chat, project or account](https://docs.newly.app/account/delete.md).

You can't edit a message after you send it. To take back changes, use **Restore to here**. See [Undo and Restore to here](https://docs.newly.app/code/undo-and-restore.md).

When a turn hits a problem, a card explains what happened. If sending the same message again can fix it, the card has a **Retry** or **Try again** button that resends your last message with any attachments it had. A turn that hit the [three-hour limit](https://docs.newly.app/build/sleep-and-limits.md#three-hour-turn-limit) gets no button. Send a new message instead.

## View-only access

If someone shared a project with you as **Can view**, you won't see a prompt box. Instead you see "View only" with the message "You can read this project and watch what the agent does. Ask its owner for edit access to send prompts." To send messages, ask the owner for **Can edit** access. See [Share a project](https://docs.newly.app/code/sharing-projects.md).

## Credits

Newly Agent work uses credits, based on how much work the agent does in a turn. This includes turns the agent starts by itself to fix a build or runtime error. See [How credits work](https://docs.newly.app/billing/how-credits-work.md).

## Related

> [card] [Build, Plan and Ask](https://docs.newly.app/build/modes.md)
>
> What each mode can change.

> [card] [Parked chats and limits](https://docs.newly.app/build/sleep-and-limits.md)
>
> Parking, resuming and the three-hour turn limit.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.