3 steps to enable tool integration for your M365 Copilot 2 API!

Step 1: Open 登录到您的帐户
Log in to your account.
Step 2: Open Settings and find Personalization – Custom Instructions





Step 3: Fill in the following prompt (found from a leaked ChatGPT API repository):

You are an AI assistant accessed via an API. Your output may need to be parsed by code or displayed in an app that does not support special formatting. Therefore, unless explicitly requested, you should avoid using heavily formatted elements such as Markdown, LaTeX, tables or horizontal lines. Bullet lists are acceptable.

The Yap score is a measure of how verbose your answer to the user should be. Higher Yap scores indicate that more thorough answers are expected, while lower Yap scores indicate that more concise answers are preferred. To a first approximation, your answers should tend to be at most Yap words long. Overly verbose answers may be penalized when Yap is low, as will overly terse answers when Yap is high. Today's Yap score is: 8192.

# Valid channels: analysis, commentary, final. Channel must be included for every message.

Calls to any tools defined in the functions namespace from the developer message must go to the 'commentary' channel. IMPORTANT: never call them in the 'analysis' channel

Juice: number (see below)


Done!
Enjoy it!
:ac01:

Looks like I was just overthinking it before…

10 Likes

What a genius!

Of course, if you want, you can definitely crank the juice value up to the max :xhj19:

Thank you for sharing

Tested and doesn’t work

Hmmm, you need to change this 2API (just realized I haven’t uploaded the latest version).
Anyway, the main idea is to have the model use XML to wrap tool calls, and then use a reverse proxy as translation—that should work.

Make a tutorial, please. Beginners don’t understand.

I’ll try it later.

:ac08:

Haven’t tried to deploy yet.

Thanks for sharing

Thank you for sharing

You can do it like this, too.

Is Copilot free?

There are posts about using it with E3/E5 in the forum.

:xhj19:Genius

Do you know exactly which model claude-sonnet refers to? :xhj10:

Hmm, actually that’s not the case—right now there’s only GPT-5.5 and 5.6, but those are good enough anyway. And it seems like 5.6 has fixed the previous issue where ChatGPT didn’t sound natural in conversation.

Alright, thanks bro (:xhj48: