The Canva Code tool uses AI to generate interactive activities, like educational games, with no actual coding required. Using text prompts, Canva will generate the code and a playable educational game.
Create practice games easily that are tailored to specific content standards and student needs: Memory Matches, Drag and Drops, Multiple Choice, Choose Your Own Adventure, Simulators, etc.
Test it, Check it For Accuracy, Revise As Needed, Share it!
Go to the Canva Homepage: Log into your Canva account.
Find the Feature: Click on the Purple Create Button and then Click on the Green Canva Code Button. If you don't have the Canva Code button, please reach out to your tech coach. Some staff may not have that option and need to be added to a team in Canva that does.
The key to a good result is a detailed, specific prompt. Think of this as instructing a person exactly what the game should be.
Specify the Type of Game: Start by stating the game type (e.g., "Create a vocabulary matching game," "Design a multiple-choice quiz," "Make a drag-and-drop sorting activity," or "Generate an interactive timeline.").
Define the Topic and Audience: Include the subject, content area, and target grade level.
Example: "...about the states of matter for 4th-grade science."
Provide the Content (Questions/Answers): Be explicit with the information the game needs to use.
Example (for a Quiz): "Include the following three questions and their four answer options..."
Example (for a Matching Game): "The matching pairs are: 'Solid' to 'Has a fixed shape and volume,' 'Liquid' to 'Takes the shape of its container,' and 'Gas' to 'Fills any space available.'"
Set Rules and Style (Optional but Recommended):
What happens when a student gets an answer right or wrong? (e.g., "Show an animated checkmark for correct answers and a red 'X' for incorrect ones," or "Show a congratulatory message with animated fireworks for completing the game.")
Specify colors or a simple style (e.g., "Use a bright, primary color palette," or "Replace images with simple emojis.").
🎯 Example of a strong educational game prompt: "Create a 5-question multiple-choice quiz about the capital cities of South American countries for a high school geography class. For correct answers, display a green checkmark. For incorrect answers, display the correct answer below the question. Use a simple, modern design."
Submit the Prompt: Click the purple arrow or send button to submit your prompt.
Wait for Generation: Canva Code's AI will process your request and generate the interactive game code.
Preview and Test: A preview of the activity will appear in the chat window. Crucially, playtest the game yourself to check for bugs, ensure all the educational facts are correct (AI can sometimes "hallucinate" information), and verify the game mechanics work as intended.
The first output may not be perfect. The Canva Code interface works as a conversational chat to make changes.
Ask for Changes: Use the message box to request modifications. Your previous chat history and the current version of the activity will remain visible.
Example prompts for refinement:
"Change the font to a more kid-friendly, rounded style."
"Add two more questions about the planets in our solar system."
"Make the drag-and-drop targets larger."
"In question 3, change the answer for 'Buenos Aires' to 'Argentina'."
Continue the Conversation: Keep prompting the AI until the educational game meets all your requirements and looks exactly how you want it.
Integrate into a Design: Once you are happy with the game, select the "Use in a design" button. This will embed the interactive game as a widget onto a new or existing Canva design (like a presentation or a website).
Publish and Share: From your main Canva design:
You can share it as a link.
You can publish it as a website (via the "Share" menu), which often works best for a standalone interactive game.
You can embed it into a learning management system (LMS) or webpage.