|
| 1 | +--- |
| 2 | +title: "About the Arduino AI Assistant" |
| 3 | +id: 19958917855132 |
| 4 | +--- |
| 5 | + |
| 6 | +The Arduino AI Assistant is an experimental feature in the Arduino Cloud Editor, that uses Generative AI to help write code for your sketch. |
| 7 | + |
| 8 | +In this article: |
| 9 | + |
| 10 | +<!-- TOC --> |
| 11 | + |
| 12 | +- [Requirements](#requirements) |
| 13 | +- [Getting started with the Arduino assistant](#getting-started-with-the-arduino-assistant) |
| 14 | +- [Undo an applied suggestion](#undo-an-applied-suggestion) |
| 15 | +- [Further reading](#further-reading) |
| 16 | + |
| 17 | +<!-- /TOC --> |
| 18 | + |
| 19 | +## Requirements |
| 20 | + |
| 21 | +The Arduino AI Assistant is available on all Cloud plans. |
| 22 | + |
| 23 | +The maximum number of requests that can be sent each month depends on the Cloud plan: |
| 24 | + |
| 25 | +| Plan | Interactions | |
| 26 | +|--------------------|--------------| |
| 27 | +| Free | 30 / month | |
| 28 | +| Maker | 1500 / month | |
| 29 | +| School | 1500 / month | |
| 30 | +| Team or Enterprise | Unlimited | |
| 31 | + |
| 32 | +To see all the options, check out cloud.arduino.cc/plans. |
| 33 | + |
| 34 | +## Getting started with the Arduino assistant |
| 35 | + |
| 36 | +Follow these steps: |
| 37 | + |
| 38 | +1. Go to [app.arduino.cc/sketches](https://app.arduino.cc/sketches). |
| 39 | + |
| 40 | +1. Choose a sketch to open in the Cloud Editor: |
| 41 | + |
| 42 | + - **Create a new sketch:** Click on the Create button in the top-right corner and choose New Sketch. |
| 43 | + - **Open a saved sketch:** Click on a sketch you want to open. |
| 44 | + |
| 45 | +1. Select the AI assistant tab in the sidebar: |
| 46 | + |
| 47 | +  |
| 48 | + |
| 49 | +1. Do one of the following to start a conversation: |
| 50 | + |
| 51 | + - Select a hint to send the suggested message (available when the chat history is empty). |
| 52 | + - Type a message into the text field and press Enter to send. |
| 53 | + |
| 54 | +1. Arduino AI Assistant will write a response. |
| 55 | + |
| 56 | +1. Refine or continue: |
| 57 | + |
| 58 | + - If the response isn’t quite right, try: |
| 59 | + |
| 60 | + - Rephrasing your question |
| 61 | + |
| 62 | + - Asking for more detail or examples |
| 63 | + |
| 64 | + - Saying “Try again” or “Make it shorter/longer/more casual” |
| 65 | + |
| 66 | + - If the response include a **code suggestion**, these actions will be available: |
| 67 | + |
| 68 | + - _Copy:_ Copy the suggestion to your clipboard. |
| 69 | + |
| 70 | + - _Apply:_ Apply the suggestion to the main sketch file. |
| 71 | + |
| 72 | +**Prompt examples:** |
| 73 | + |
| 74 | +- _Code generation:_ "I want to draw on the LED matrix a column of 4 LEDs that is moving from left to right over time." |
| 75 | +- _Explanatory:_ "How does the sketch loop work in this sketch?" |
| 76 | + |
| 77 | +## Undo an applied suggestion |
| 78 | + |
| 79 | +To undo an applied suggestion Press <kbd>Ctrl</kbd> + <kbd>Z</kbd> (Windows/Linux) / <kbd>⌘</kbd> + <kbd>Z</kbd> (macOS) or select Edit > Undo in top menu bar. |
| 80 | + |
| 81 | +If the Cloud Editor is closed or refreshed, previously applied suggestion cannot be undone. Please back up important sketches before applying suggestions. |
| 82 | + |
| 83 | +## Further reading |
| 84 | + |
| 85 | +- [Understand how the Arduino AI Assistant works and how it uses your data](https://support.arduino.cc/hc/en-us/articles/19958862731804) |
0 commit comments