How can I invoke copilot.microsoft.com programmatically via an API so that i can send a prompt in via code or a link?

ChrisCottrell-8918 90 Reputation points
2024-03-20T20:39:42.6366667+00:00

I would like to submit prompts to copilot.microsoft.com programmatically via API or link such that the user is not forced into the copilot interface to enter a prompt. The problem is to be able to have the user make a preselection from a menu and have that preselection send the complete prompt to copilot behind the scenes so that the user does not require knowledge or repeated entry of the prpmpt directives.

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,049 questions
Microsoft Copilot
Microsoft Copilot
Microsoft terminology for a universal copilot interface.
666 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ben Hoffmann 0 Reputation points
    2025-03-12T16:54:47.0766667+00:00

    Most of the data in a Copilot deep link that contains the prompt is base64-encoded. But the actual prompt seems to be an ID referencing some resource which I can't get to.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.