The Arduino AI Assistant is an experimental feature in the Arduino Cloud Editor, that uses Generative AI to help write code for your sketch.
In this article:
Requirements
The Arduino AI Assistant is available on all Cloud plans.
The maximum number of requests that can be sent each month depends on the Cloud plan:
| Plan | Interactions |
|---|---|
| Free | 30 / month |
| Maker | 1500 / month |
| School | 1500 / month |
| Team or Enterprise | Unlimited |
To see all the options, check out cloud.arduino.cc/plans.
Getting started with the Arduino assistant
Follow these steps:
-
Go to app.arduino.cc/sketches.
-
Choose a sketch to open in the Cloud Editor:
- Create a new sketch: Click on the Create button in the top-right corner and choose New Sketch.
- Open a saved sketch: Click on a sketch you want to open.
-
Select the AI assistant tab in the sidebar:
-
Do one of the following to start a conversation:
- Select a hint to send the suggested message (available when the chat history is empty).
- Type a message into the text field and press Enter to send.
-
Arduino AI Assistant will write a response.
-
Refine or continue:
-
If the response isn’t quite right, try:
-
Rephrasing your question
-
Asking for more detail or examples
-
Saying “Try again” or “Make it shorter/longer/more casual”
-
-
If the response include a code suggestion, these actions will be available:
-
Copy: Copy the suggestion to your clipboard.
-
Apply: Apply the suggestion to the main sketch file.
-
-
Prompt examples:
- Code generation: “I want to draw on the LED matrix a column of 4 LEDs that is moving from left to right over time.”
- Explanatory: “How does the sketch loop work in this sketch?”
Undo an applied suggestion
To undo an applied suggestion Press Ctrl + Z (Windows/Linux) / ⌘ + Z (macOS) or select Edit > Undo in top menu bar.
If the Cloud Editor is closed or refreshed, previously applied suggestion cannot be undone. Please back up important sketches before applying suggestions.