Skip to content

Commit 96e2e73

Browse files
committed
Clarity
1 parent edfd584 commit 96e2e73

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

articles/communication-services/quickstarts/chat/quickstart-botframework-integration.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -224,25 +224,24 @@ namespace ChatQuickstart
224224

225225
### Start a chat thread with the bot
226226

227-
Use the `createChatThread` method on `chatClient` to create a chat thread. Replace the ID with the bot's Communication Services ID.
227+
Use the `createChatThread` method on `chatClient` to create a chat thread. Replace the ID with the bot's Communication Services ID that you copied in this step: [Token and ACS Bot ID app](#get-a-communication-services-resource)
228228

229229
```csharp
230-
var chatParticipant = new ChatParticipant(identifier: new CommunicationUserIdentifier(id: "<BOT_ID>"))
230+
var chatParticipant = new ChatParticipant(identifier: new CommunicationUserIdentifier(id: "<BOT_ACS_ID>"))
231231
{
232232
DisplayName = "BotDisplayName"
233233
};
234234
CreateChatThreadResult createChatThreadResult = await chatClient.CreateChatThreadAsync(topic: "Hello Bot!", participants: new[] { chatParticipant });
235-
ChatThreadClient chatThreadClient = chatClient.GetChatThreadClient(threadId: createChatThreadResult.ChatThread.Id);
236-
string threadId = chatThreadClient.Id;
235+
237236
```
238237

239238
### Get a chat thread client
240239

241-
The `GetChatThreadClient` method returns a thread client for a thread that already exists:
240+
The `GetChatThreadClient` method returns a thread client for a thread.
242241

243242
```csharp
244-
string threadId = "<THREAD_ID>";
245-
ChatThreadClient chatThreadClient = chatClient.GetChatThreadClient(threadId: threadId);
243+
ChatThreadClient chatThreadClient = chatClient.GetChatThreadClient(threadId: createChatThreadResult.ChatThread.Id);
244+
string threadId = chatThreadClient.Id;
246245
```
247246

248247
### Send a message to a chat thread
@@ -571,5 +570,5 @@ Verify that the bot's Microsoft app ID and password are saved correctly in the b
571570
Verify that the bot's Communication Services ID is used correctly when a request is sent to add a bot to a chat thread.
572571

573572
## Next steps
574-
573+
TODO: This points to a private repo and should be removed or moved.
575574
Try the [chat bot demo app](https://github.com/Azure/communication-preview/tree/master/samples/AzureBotService-Sample-App) for a 1:1 chat between a chat user and a bot via the BotFramework WebChat UI component.

0 commit comments

Comments
 (0)