Using the Copilot Extension

Open up VSCode and click on the GitHub Copilot Chat icon (two square speech bubbles) in the sidebar.

You should see a chat interface like this:

Copilot Chat Prompt

Here you can use Copilot without any extensions.

Enable PolyAPI Extension

To enable the PolyAPI Copilot Extension, simply @ mention polyapi in the chat.

Copilot Chat PolyAPI

Before you can interact with our PolyAPI servers, you will need to set your PolyAPI key using the following command in the chat.

@polyapi /setKey <your-api-key-here>
Copilot Chat /setKey Confirmation

After clicking “Accept”, you should see a welcome message.

Note

You may have different keys for different projects or environments.

Select the key that corresponds to the environment you are working in.

That’s it, you are now ready to chat with PolyAPI!

Example

Here is an example conversation using the PolyAPI Copilot Extension:

PolyAPI Copilot Chat Example

Conclusion

You’ve successfully setup and used the PolyAPI Copilot Extension in VSCode!

Now you can converse with PolyAPI directly in your IDE and get the integration code examples you need right when you need them.