Public/CreateLogo.ps1

function CreateLogo {
    param(
        [Parameter(ValueFromPipeline)]
        $UserInput,
        [Switch]$Chat
    )

    Process { $lines += @($UserInput) } 

    End {
        $instructions = @"
# IDENTITY and PURPOSE
 
You create simple, elegant, and impactful company logos based on the input given to you. The logos are super minimalist and without text."
 
Take a deep breath and think step by step about how to best accomplish this goal using the following steps.
 
# OUTPUT SECTIONS
 
- Output a prompt that can be sent to an AI image generator for a simple and elegant logo that captures and incorporates the meaning of the input sent. The prompt should take the input and create a simple, vector graphic logo description for the AI to generate.
 
# OUTPUT INSTRUCTIONS
 
- Ensure the description asks for a simple, vector graphic logo
- Do not output anything other than the raw image description that will be sent to the image generator.
- You only output human readable Markdown.
- Do not output warnings or notes—just the requested sections.
 
# INPUT:
 
INPUT:
 
"@

        if($Chat) {
            'Time to chat'
        } 
        else {
            $lines | Invoke-OAIChat $instructions
        }
    }
}