This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:ai:chatbot-helpdesk-sentiment [2025/06/25 12:19] – ddehamer | wiki:ai:chatbot-helpdesk-sentiment [2025/07/02 21:10] (current) – zhein | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== AI Chatbot | + | ====== AI Chatbot |
| ===== Requirements ===== | ===== Requirements ===== | ||
| Line 24: | Line 25: | ||
| Install this from the webpage and follow directions. [[https:// | Install this from the webpage and follow directions. [[https:// | ||
| - | Then these | + | Create a folder in your workspace and save the files at the end of this document. |
| + | |||
| + | Open a terminal, set your folder to the one where the files are saved, then run these commands: | ||
| + | |||
| + | These commands are only needed for Windows users: | ||
| + | <code -> | ||
| + | dotnet nuget add source https:// | ||
| + | npm install -g azure-functions-core-tools@4 --unsafe-perm true | ||
| + | dotnet nuget locals all --clear | ||
| + | dotnet restore | ||
| + | </ | ||
| + | |||
| + | The rest of the instructions are for every OS: | ||
| <code -> | <code -> | ||
| Line 110: | Line 123: | ||
| export OPENAI_ENDPOINT=https:// | export OPENAI_ENDPOINT=https:// | ||
| + | |||
| + | export OPENAI_DEPLOYMENT=gpt-4.1 | ||
| az functionapp config appsettings set \ | az functionapp config appsettings set \ | ||
| Line 117: | Line 132: | ||
| OPENAI_KEY=$OPENAI_KEY \ | OPENAI_KEY=$OPENAI_KEY \ | ||
| OPENAI_ENDPOINT=$OPENAI_ENDPOINT | OPENAI_ENDPOINT=$OPENAI_ENDPOINT | ||
| + | OPENAI_DEPLOYMENT=$OPENAI_DEPLOYMENT | ||
| | | ||
| #Confirm they were set | #Confirm they were set | ||
| Line 186: | Line 202: | ||
| // OpenAI Setup | // OpenAI Setup | ||
| - | var openaiEndpoint = Environment.GetEnvironmentVariable(" | + | var openaiEndpoint = Environment.GetEnvironmentVariable(" |
| - | var openaiKey = Environment.GetEnvironmentVariable(" | + | var openaiKey = Environment.GetEnvironmentVariable(" |
| var deployment = Environment.GetEnvironmentVariable(" | var deployment = Environment.GetEnvironmentVariable(" | ||