User Tools

Site Tools


wiki:ai:chatbot-helpdesk-sentiment

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:ai:chatbot-helpdesk-sentiment [2025/06/25 12:19] ddehamerwiki:ai:chatbot-helpdesk-sentiment [2025/07/02 21:10] (current) zhein
Line 1: Line 1:
-====== AI Chatbot wit Sentiment and In Kind Responses ======+====== AI Chatbot with Sentiment and In Kind Responses ====== 
  
 ===== Requirements ===== ===== Requirements =====
Line 24: Line 25:
 Install this from the webpage and follow directions. [[https://dotnet.microsoft.com/en-us/download/dotnet/8.0|dotnet 8.x]] Install this from the webpage and follow directions. [[https://dotnet.microsoft.com/en-us/download/dotnet/8.0|dotnet 8.x]]
  
-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://api.nuget.org/v3/index.json -n nuget.org 
 +npm install -g azure-functions-core-tools@4 --unsafe-perm true 
 +dotnet nuget locals all --clear 
 +dotnet restore 
 +</code> 
 + 
 +The rest of the instructions are for every OS:
  
 <code -> <code ->
Line 110: Line 123:
  
 export OPENAI_ENDPOINT=https://don-openai-useast.openai.azure.com/ export OPENAI_ENDPOINT=https://don-openai-useast.openai.azure.com/
 +
 +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("OPENAI_API_ENDPOINT")?.TrimEnd('/'); +        var openaiEndpoint = Environment.GetEnvironmentVariable("OPENAI_ENDPOINT")?.TrimEnd('/'); 
-        var openaiKey = Environment.GetEnvironmentVariable("OPENAI_API_KEY");+        var openaiKey = Environment.GetEnvironmentVariable("OPENAI_KEY");
         var deployment = Environment.GetEnvironmentVariable("OPENAI_DEPLOYMENT");         var deployment = Environment.GetEnvironmentVariable("OPENAI_DEPLOYMENT");
  
wiki/ai/chatbot-helpdesk-sentiment.1750853953.txt.gz · Last modified: by ddehamer