From 49cbfe73d08ecbd614eafdccf50afac429065ea5 Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Thu, 3 Oct 2024 15:20:24 -0500 Subject: [PATCH 1/2] refine payload --- src/routes/chat/[agentId]/[conversationId]/chat-box.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte index f7f9099..a68d230 100644 --- a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte +++ b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte @@ -1086,7 +1086,7 @@ const data = { postback: { functionName: 'like_response', - payload: 'I really like this message!', + payload: message.text, parentId: message?.id }, states: [] From 4443bce970e1e7341deed268afd91d6c095e9d71 Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Thu, 3 Oct 2024 15:21:47 -0500 Subject: [PATCH 2/2] minor change --- src/routes/chat/[agentId]/[conversationId]/chat-box.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte index a68d230..c45b02d 100644 --- a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte +++ b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte @@ -1086,7 +1086,7 @@ const data = { postback: { functionName: 'like_response', - payload: message.text, + payload: message.text || 'I really like this message!', parentId: message?.id }, states: []