GitHub Copilot actions
GitHub Copilot actions allow you to interact with GitHub Copilot directly from your Demo Time steps. You can open GitHub Copilot chat, start new chats, ask questions, and more—all as part of your scripted demo.
Open Copilot chat
To open the Copilot chat panel, use the openCopilotChat action.
{ "action": "openCopilotChat"}action: openCopilotChatStart a new Copilot chat
To start a new Copilot chat session, use the newCopilotChat action.
{ "action": "newCopilotChat"}action: newCopilotChatAsk a question in Copilot chat
To ask a question, use the askCopilotChat action. The message property is optional; if omitted, the chat will open without sending a message.
{ "action": "askCopilotChat"}
{ "action": "askCopilotChat", "message": "Write a function that returns 'Hello from Demo Time'."}action: askCopilotChataction: askCopilotChatmessage: "Write a function that returns 'Hello from Demo Time'."Start an edit chat with Copilot
To start an edit chat, use the editCopilotChat action. The message property is optional.
{ "action": "editCopilotChat"}
{ "action": "editCopilotChat", "message": "Write a function that returns 'Hello from Demo Time'."}action: editCopilotChataction: editCopilotChatmessage: "Write a function that returns 'Hello from Demo Time'."Start an agent chat with Copilot
To start an agent chat, use the agentCopilotChat action. The message property is optional.
{ "action": "agentCopilotChat"}
{ "action": "agentCopilotChat", "message": "Write a function that returns 'Hello from Demo Time'."}action: agentCopilotChataction: agentCopilotChatmessage: "Write a function that returns 'Hello from Demo Time'."Close Copilot chat
To close the Copilot chat panel, use the closeCopilotChat action.
{ "action": "closeCopilotChat"}action: closeCopilotChat