diff --git a/src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationService.SendMessage.cs b/src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationService.SendMessage.cs index 489e400e..d6940fe1 100644 --- a/src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationService.SendMessage.cs +++ b/src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationService.SendMessage.cs @@ -52,9 +52,9 @@ public partial class ConversationService message.Files?.Clear(); // Save payload - if (replyMessage != null) + if (replyMessage != null && !string.IsNullOrEmpty(replyMessage.Payload)) { - message.Payload = string.IsNullOrEmpty(replyMessage.Payload) ? message.Content : replyMessage.Payload; + message.Payload = replyMessage.Payload; } // Before chat completion hook