From the course: AI-Driven Software Development with OpenAI’s Canvas
ChatGPT's new interactive AI assistant
From the course: AI-Driven Software Development with OpenAI’s Canvas
ChatGPT's new interactive AI assistant
- Canvas is an interface that's now part of ChatGPT, and it lets you work with documents and code in a more interactive fashion. Activating canvas can happen automatically. If you ask a question like, "Let's work on a readme file for my next project," the AI might take you into canvas mode. You can tell that it's in canvas since it starts by placing the document in two columns with props on the left and the document on the right. You can also tell the AI that you want to use Canvas just by adding the text "use canvas" in your prompt or by choosing it from the popup in the section called Tools. As a matter of fact, we can tell an existing conversation to switch to canvas mode by just adding this from the tools menu. To exit the two column view, you can use the close icon and that takes you back to single column mode. However, canvas will remain active in a conversation and you can get it back if you use the Expand icon on any document or if you use this icon right here to open in Canvas. The document section in Canvas is an editable document, so you can change things by typing directly on the right hand side. I'll type in new Canvas features and I can select this and change this to a headline. You can also make a selection and ask ChatGPT to focus on just that part of the text. We'll ask ChatGPT to make this title more interesting. And you'll notice that it just changes that specific title. Don't worry. You'll also get a history button that lets you look at the changes that were made with arrows that let you roll back to other versions. If you working on text documents, you'll also get a number of utilities at the bottom of the screen. You can ask it to suggest potential edits, which will mark up the document with some additional suggestions. You can click on these and choose whether or not to accept the changes, or you can simply close any changes that you don't like. You can change the length of the document by making it shorter or longer. I'll make it shorter. You can also adjust the reading level to make it easier for people to read. You can even add emojis and control whether you want those to appear in certain parts of your document, like words, sections, or lists. Once you're done, you can copy the document by hitting this button right here. Here's what Canvas looks like when you're working with code, a similar split interface with a popup that is slightly different than the text options. You get the ability to fix bugs with a single button. Let's take a look at what the changes were. You can also hit the run button and execute the Python code. You can also get Canvas to log the status to the console. As well as adding comments to document your code. Just like you can ask the AI to suggest edits for you, you can ask it to do a code review and it's going to suggest changes that will improve your application. If you like these, you can hit the Apply button. Canvas fundamentally changes how you work with ChatGPT, and it's especially useful for writers and programmers. I've already gotten so used to this paradigm that I can't imagine working with Document Generation in any other way.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.