Integration Issue Between Twilio WhatsApp Bot and Azure - Sequence Messages Not Received/Synced

Tulio Alberto da Rocha Campos 0 Reputation points
2024-07-30T22:11:58.0033333+00:00

Hello,

I am experiencing an issue with the integration of the Twilio WhatsApp bot hosted on Azure. The bot is not receiving "sequence" messages sent by Twilio. Here are some details about the problem: In my code, _watermark is configured as follows:

_watermark = response?.Watermark;
result = response?.Activities?.Where(x =>
    x.Type == ActivityTypes.Message &&
    string.Equals(x.From.Name, s_botService.BotName, StringComparison.Ordinal)).ToList();

//Console.WriteLine(result);
if (result != null && result.Any())
{
    return result;
}

Thread.Sleep(3000);

The Copilot Studio bot sometimes gets confused, always sending a response message related to what I sent previously.

How can I resolve this?

thank you for anyone that can help.

Microsoft Copilot
Microsoft Copilot
Microsoft terminology for a universal copilot interface.
358 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.