Note: If you have
PowerShellAI
you can safelyPowerShellAIAssistant
using-AllowClobber
Install-Module PowerShellAIAssistant -AllowClobber
Example code accomplishing common tasks with the OpenAI API. To run these examples
First, create an OpenAI account or sign in. Next, navigate to the API key page and "Create new secret key", optionally naming the key. Make sure to save this somewhere safe and do not share it with anyone.
Run the Sanity-Check script first. You need the API key to run it. It creates and deletes a assistant on the backend. If it works, you're good to go.
Note:
Get-OAIAssistant
requires PowerShell 7.4 or higher. It needs theAllowInsecureRedirect
parameter, a workaround is being investigated.
If you don't have PowerShell 7.4 or higher, you can use CodeSpaces to run the example. Click the button below to open CodeSpaces.
Welcome to PowerShell AI Assistant
, a module designed for seamless integration with OpenAI Assistant
APIs, providing a rich set of functionalities to empower your PowerShell scripts with the latest AI technologies. Dive into an enhanced scripting experience by leveraging an AI-powered assistant in your console.
PowerShell AI Assistant
is where advanced AI meets PowerShell scripting. With this module, you can create interactive, intelligent scripts and applications that understand and process natural language with ease.
There is one example and it is in a Polyglot Interactive Notebook.
Assistants API overview - this notebook shows how to use the Assistants API to build a simple question answering interaction.
- Easy integration with OpenAI's Assistants API
- Build conversational AI models within PowerShell
- Access a suite of AI capabilities for natural language processing, understanding, and decision making
- Extend your automation scripts with smart AI assistant features
I am developing PowerShell AI Assistant
transparently, and I welcome you to participate in this innovative journey:
- Transparency: Witness the development process as it unfolds.
- Collaboration: Contribute ideas, code, or feedback to help shape the project.
- Education: Observe and learn from ongoing development practices and community interaction.
I am Doug Finke, a PowerShell expert, AI developer, and a 15x Microsoft MVP, dedicated to merging the potential of AI with the flexibility of PowerShell.
Follow the project's progress and stay in touch by following me on
and by watching the repo.
I'm excited to see how PowerShell AI Assistant
will revolutionize your scripting and automation tasks.
Join us to push the boundaries of what's possible with AI in PowerShell!