Skip to content

Latest commit

 

History

History
72 lines (42 loc) · 905 Bytes

README.md

File metadata and controls

72 lines (42 loc) · 905 Bytes

Bot-UI-Sample

Chat Function

Go into directory

cd Chat Function

Insert connection String and endpoint

index.ts

const connectionString = ''
const endpoint = ""

Run with F5

Chat App

Go into directory

cd Chat App/chatapp

Install dependencies

npm i

Insert auth data

App.tsx

  const endpoint = ""; //Replace with your endpoint
  
  // Response returned by Chat Function
    const tmpConf: any = {
      user: {
        communicationUserId: "", // Replace with a user id for the user in a chat thread with adaptive cards bot
      },
      userToken: {
        token: "", // Replace with ACS token
        expiresOn: "", // Can be skipped, the field is returned in Chat Function response
      },
      threadId: "", // Replace with a thread id with the user and the bot
    };

Run

npm run start