[Finally Discovered] ✨ How to Solve the Problem Where the 'Export to Slides' Button Doesn't Appear in Gemini Canvas
Even though I had Gemini create slides for me,
the export button didn't appear.
It displayed in document format.
The code appeared as is.
Have you ever encountered this kind of 'Canvas feature bottleneck'? I struggled with it for a long time too. Sometimes restarting the thread works if nothing else does, but it's not a reliable method. Even when searching online, I rarely found this solution related to Canvas. The cause is often that you haven't told the AI exactly 'what to create.' The key to this is the backtick symbol.

1️⃣ What is 'Canvas' in the first place?
The editing area displayed on the right side of the Gemini screen is 'Canvas.' This is the 'window' for previewing slides or documents generated by the AI and exporting them to Google Slides. What's important here is that the AI's brain (LLM) and the Canvas feature are handled by different engines. No matter how correctly the AI generates the code, if Canvas doesn't recognize it as 'slides,' the export button won't appear. It's the same structure as a chef cooking a meal correctly, but if the plating staff doesn't understand 'what dish this is,' it won't be served on the correct plate. According to the LLM,
the conditions for making the Canvas engine decide to 'display the Export to Slides button' are extremely strict.
is what it says.
※ Click here for an article on the division of roles between the LLM and other engines ↓
2️⃣ 'Backticks' are the key to instructions for Canvas
Backticks (`)are the diagonal quotation marks you can enter with
Shift + @
on your keyboard. They are also symbols used in programming code for highlighting code, executing commands, and enclosing strings. By writing a
keywordimmediately afterthree of these in a row,it becomes an instruction sheet that tells both the AI and Canvas'which engine should process this.'Representative keywords are as follows.
slides: Presentation materials... Launches the slide-specific preview. The export button becomes enabled.
html: Calculation tools, diagnostic checkers, etc.... Launches an app screen that runs as a browser.
markdown: Documents, manuals, article drafts... Launches a structured document editor.
vba / python: Business automation scripts... Launches a code editor. Outputs in a format easy to copy.
If you want to create slides but write 'html,' the AI will start working in web app creation mode. Only when you write 'slides' will the slide-specific engine launch.

3️⃣ The 'Golden Rule' for never failing an export
Whether the button appears or not is determined by the very first line of the output.
Simply following the format below will significantly change your success rate.
```slides:(日本語の資料名):(英字のファイル名).htmlThe key is to connect three elements with colons.
Three backticks + type (e.g., slides): A command to launch the slide engine.
Title: The name of the document displayed on the Canvas. Japanese is okay.
File name: The file name of the data to be generated. Using Japanese can cause garbled text or errors, so English characters are mandatory.
And, you must always write the following on the last line of the file.
```eof"eof" (End of File) is a signal that "the file is complete here." Without this, the AI will judge the file as incomplete, and the export process will not run correctly.

※Updated on 3/18
I didn't include specific usage instructions, so I am adding them now.
Usage 1: Include "```slides" at the beginning of the thread.
This tells the LLM and the canvas engine to create slides.Usage 2: Provide an output template in the prompt.
By including "```slides" and "eof" in the template, you don't have to rely on the AI.Usage 3: Tell Gemini in natural language.
It's easy, but it's doubtful whether the AI actually executed it...
4️⃣ The "Pitfall" of Backticks
Backticks powerfully activate the Canvas. Because of that, if handled incorrectly, unexpected things can happen.
For example, it can also cause Gemini's response to cut off midway.
If this symbol is included halfway through a chat reply, the AI may judge that "everything from here on is code," and it might hide part of the subsequent text or move it to the preview screen.
When I investigated the cause with Gemini this time, there were many times when the LLM accidentally inserted backticks in the middle, making the text unreadable.
When the response stops midway or the display looks strange,
"Please reply again without using backticks directly, and replace them with katakana."
Try telling it that. In many cases, this alone will resolve the issue.
By the way, Gemini is not the only one that uses backticks. As mentioned in Chapter 1, they are symbols used in programming code.
Even while writing this article, the note platform automatically identified them and kept turning them into code blocks.
(Honestly, it's a pain... lol.)
Also, the more slides there are, the heavier the export process becomes.
Making it a habit to split one file into 5 slides or less makes it easier to prevent timeout errors. In your prompt, say,
"Split into one file for every 5 slides."
It is smoother if you include it.

5️⃣ Sometimes, 'Even if you do it correctly, nothing happens'
Yesterday, despite trying with the correct procedure, the situation where it simply wouldn't work continued.
When I investigated the cause, I found that the free plan has a mechanism where processing is prioritized lower than the paid plan during times when the server is congested. The available capacity of the paid plan is allocated to the free plan.
Therefore, it is particularly prone to being affected on weekend afternoons or weekday evenings, and resource-intensive features like Canvas export are more likely to result in errors due to timeouts.
There are three ways to deal with this.
① Wait a while and try again
Avoid peak times (daytime in Japan, evening prime time, weekend afternoons) and try again the next morning or late at night.
※Added on 3/29: You might be wondering, 'When are those peak times?' As a rough guide, please read the article below. ↓
② Get by with copy and paste
Instead of waiting for the export button, manually copy the code displayed on the Canvas and save it locally.
There is also the option of executing the copied code in another generative AI like Claude.
③ Give up for today
There is nothing you can do about server load. Rather than wasting time chasing it, it is a wise decision in the field to accept that 'the server is in a bad mood right now' and move on to other tasks.
Note that in such cases, the LLM might be in total confusion during the chat interaction, or the cache might be having a negative effect. Since there are times when you have no choice but to restart the thread, make sure to save important data separately.
If it works by 'restarting the thread' as mentioned at the beginning, it might have been caused by this kind of server congestion.

📌 Summary: Knowing the 'quirks of your tools' is the first step to DX
The Canvas feature is a tool that can significantly streamline document creation in the field if used correctly. However, to receive those benefits, you need to understand the 'quirks of the tool'.
When the export button doesn't appear, first check the very first line
Just by following the two rules of `slides` and `eof`, the success rate increases significantly
On days when nothing works, it might be the server's fault
Perhaps some of you reading this article might think, 'I've never paid attention to that, but it's working fine for me so far.' That is likely because the LLM is appropriately conveying these processes to the Canvas engine in the background.
Until I investigated the cause this time, I didn't remember seeing backticks, so I didn't know about it myself.
When you feel that 'the AI won't listen to me,' the cause is almost always a bottleneck in these mechanisms, not the AI's intelligence. When things don't go well, please try checking these three points with Gemini.

※The specifications of the Canvas feature introduced in this article are for the free plan of Gemini. Behavior may change due to platform updates.
