Azure OpenAI Chat with History > Using the Azure OpenAI Chat with History recipe > Step 2: Configure and publish the FileConnectionChatHistory connection
  

Step 2: Configure and publish the FileConnectionChatHistory connection

Configure the file directory and specify the action to be taken if a file already exists. Then, publish the FileConnectionChatHistory connection.
  1. 1Open the FileConnectionChatHistory connection.
  2. 2From the Type list, select File.
  3. 3From the Run On list, select any Secure Agent.
  4. 4On the Event Targets tab, in the Directory field, enter the directory to store the files. In the File Exists field, select Append.
  5. 5Save, test, and publish the connection.