Skip to content

Commit 2101f3a

Browse files
authored
Merge pull request #826 from iceljc/master
append list
2 parents 14bbb3c + 40b047c commit 2101f3a

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/Plugins/BotSharp.Plugin.Twilio/OutboundPhoneCallHandler/Functions/HandleOutboundPhoneCallFn.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,16 @@ public async Task<bool> Execute(RoleDialogModel message)
6464
Channel = ConversationChannel.Phone
6565
});
6666
var conversationId = newConv.Id;
67-
convStorage.Append(conversationId, new RoleDialogModel(AgentRole.User, "Hi, I'm calling to check my work order quote status, please help me locate my work order number and let me know what to do next.")
67+
convStorage.Append(conversationId, new List<RoleDialogModel>
6868
{
69-
CurrentAgentId = entryAgentId
70-
});
71-
convStorage.Append(conversationId, new RoleDialogModel(AgentRole.Assistant, args.InitialMessage)
72-
{
73-
CurrentAgentId = entryAgentId
69+
new RoleDialogModel(AgentRole.User, "Hi, I'm calling to check my work order quote status, please help me locate my work order number and let me know what to do next.")
70+
{
71+
CurrentAgentId = entryAgentId
72+
},
73+
new RoleDialogModel(AgentRole.Assistant, args.InitialMessage)
74+
{
75+
CurrentAgentId = entryAgentId
76+
}
7477
});
7578

7679
// Generate audio

0 commit comments

Comments
 (0)