Chat completions from VBA
COM & Office Automation
Bring the same chat client into legacy Windows automation environments.
Explore source ↗Capability
A .NET Framework COM-visible bridge exposes asynchronous chat operations and completion events to Windows automation clients, including Word and VBA translation, drafting, and form workflows.
- 01
COM-visible Chat API
- 02
Asynchronous completion events
- 03
Word and VBA integration examples
- 04
.NET Framework automation bridge
How it composes
From intent
to working system.
Register
The assembly and type library become available to COM clients.
Create
Automation code initializes a chat session and settings.
Send
Async methods submit prompts without blocking the host UI.
Handle
COM events return output to documents, forms, or macros.
Quick start
Adopt this
capability.
Start with the primary module, then add the related packages only when the application needs those layers. Replace VERSION with the current NuGet version.
dotnet add package ChatGptCom<PackageReference Include="ChatGptCom" Version="VERSION" /><PackageVersion Include="ChatGptCom" Version="VERSION" />// Register the COM assembly, reference its type library,// then create ChatGptCom.Chat from VBA or another COM client.var chat = new ChatGptCom.Chat();chat.Create("You are a helpful assistant", 2000, "gpt-3.5-turbo");chat.AskAsync("Translate to English", sourceText);Modules in this capability
Use one layer.
Compose the rest.
Source of truth
Read the module beside the complete system.
The implementation, samples, issues, and release notes stay in the parent repository so module details remain connected to the product architecture.