ChatGPT with Microsoft Word
Learn how to build a custom GPT in ChatGPT that reads paragraphs in Word documents stored in OneDrive using Caddey — no coding required.
September 23, 2025
In this tutorial, you'll connect Microsoft Word to ChatGPT via Caddey so your custom GPT can find a document using OneDrive tools and list its paragraphs — with files saved in your OneDrive.
Prerequisites
- ChatGPT Plus/Pro subscription
- Caddey account
- Microsoft account with OneDrive + Word access
Step 1: Create a Caddey OAuth Client
- Log in to Caddey → Clients.
- Add Client (e.g., "Word Assistant"), choose Confidential, add an optional description.
- Leave redirect URI empty for now.
- Save and copy the Client ID and Client Secret.
The OAuth client represents your ChatGPT assistant's identity in Caddey. It allows ChatGPT to securely authenticate and call Word/OneDrive actions through Caddey using OAuth 2.0.
Step 2: Connect OneDrive and Microsoft Word in Caddey
A. Connect Microsoft OneDrive
- Apps → Marketplace
- Find Microsoft OneDrive and click Connect
- Configure key: Choose the published OAuth key
- Confirm connection (OneDrive appears under Apps)
B. Connect Microsoft Word
- Apps → Marketplace
- Find Microsoft Word and click Connect
- Configure key: Choose the published OAuth key
- Confirm connection (Word appears under Apps)
Step 3: Create a Word Toolbox
- Toolboxes → Create Toolbox named "Document Reading Tools".
- Add tools such as:
- List OneDrive root folder items
- Search OneDrive for files
- List all paragraphs in a document (OneDrive) These actions let your GPT locate a document and read its paragraphs. Use OneDrive search or root listing to find the file, then call the Word "List paragraphs" tool.
Step 4: Assign the Toolbox to Your Client
- Open your client from Step 1.
- Add Toolbox → choose Document Reading Tools.
Step 5: Create a Custom GPT in ChatGPT
- Open ChatGPT → Explore GPTs or Create GPT
- Name it (e.g., "Writer Assistant")
- Description: "Finds a document with OneDrive and reads its Word paragraphs via Caddey"
Step 6: Connect the GPT to Caddey
- Add an action
- Configure OAuth:
- Authorization URL:
https://auth.caddey.ai/realms/caddey/protocol/openid-connect/auth - Token URL:
https://auth.caddey.ai/realms/caddey/protocol/openid-connect/token - Client ID / Secret: From your Caddey client
- Scope:
openid profile email offline_access
- Authorization URL:
- Import OpenAPI schema:
https://api.caddey.ai/v3/api-docs/tools - Verify endpoints: GET
/tools/query, POST/tools/{toolId}/execute - Save the action to generate the callback URL
- Find the Callback URL: Go to your GPT's main Configure screen and copy the Callback URL
- Update your Caddey OAuth Client: Add the URL to Redirect URIs, then save
Important: The callback URL only appears on your GPT's main Configure screen after you've saved the action with OAuth configuration. If you don't see it immediately, make sure you've saved the action and are looking at your GPT's main Configure screen, not the individual action settings.
Step 7: Test with a Real Use Case (Read paragraphs)
- Browse root: "List the items in my OneDrive root."
- Search for the file: "Search OneDrive for 'Project Kickoff Notes.docx'."
- Read paragraphs: "List the paragraphs in 'Documents/Notes/Project Kickoff Notes.docx'."
If search returns multiple files, disambiguate by path or ask for the file's itemId before calling "List paragraphs".
Finalize and Deploy Your GPT
Click Save or Done in the GPT builder. Your Writer Assistant is ready to find documents and list Word paragraphs in OneDrive.
Troubleshooting
- 403 or access denied: Ensure the Microsoft account you used to connect OneDrive has access and that you granted permissions during sign-in.
- No items listed: Confirm there are files/folders in the root or browse a subfolder by providing its path.