diff --git a/BotSharp.Core/Engines/Dialogflow/AgentImporterInDialogflow.cs b/BotSharp.Core/Engines/Dialogflow/AgentImporterInDialogflow.cs index 4cbb312d..1b0a9439 100644 --- a/BotSharp.Core/Engines/Dialogflow/AgentImporterInDialogflow.cs +++ b/BotSharp.Core/Engines/Dialogflow/AgentImporterInDialogflow.cs @@ -128,6 +128,7 @@ namespace BotSharp.Core.Engines return new IntentResponseMessage { Payload = JObject.FromObject(x.Payload), + PayloadJson = JsonConvert.SerializeObject(x.Payload), Type = x.Type }; } else diff --git a/BotSharp.Core/Engines/RequestExtension.cs b/BotSharp.Core/Engines/RequestExtension.cs index eefc64ad..d966ad0f 100644 --- a/BotSharp.Core/Engines/RequestExtension.cs +++ b/BotSharp.Core/Engines/RequestExtension.cs @@ -59,7 +59,7 @@ namespace BotSharp.Core.Engines return (new { x.Type, - x.Payload + Payload = JsonConvert.DeserializeObject(x.PayloadJson) }) as Object; } else