Capture the whole Chat
# 🤝help
g
Hi everyone! I'm creating a Customer Support Chatbot and if the Chatbot can't answer the user's query, a support ticket should be send to a customer support rep. I do that through Zapier. What I want to know: How can I capture the whole chat to that point(variable, screenshots) so I can send it to the support rep? Take a look at the node and the execute code block to understand better or to correct it.

https://cdn.discordapp.com/attachments/1130156683155484733/1130156683256152095/image.png

https://cdn.discordapp.com/attachments/1130156683155484733/1130156724033179699/Screenshot_2023-07-16_171806.png

f
What is your wholeChat varible?
try and set it to either {{conversation.SummaryAgent.summary}} or {{conversation.SummaryAgent.transcript}}
if it's not already
g
Could you give me an example line
f
What is your current wholeChat varible?
g
I just wanted to create it to capture the whole chat in there
f
btw not sure I have the answer here, just had and idea we could test
g
no problem
f
yeah I understand, but you need to set it to something. Does it have no value now?
g
yes
f
what
g
i mean no it doesnt
f
hahah
where are you senind it?
with zapier
cuz that will define how you note it
g
i have a webhook, that gets the data
f
yes, to where
google sheet?
g
Yes
f
nice
Here is what I would try
make new varible called entireChat (or what ever) make sure it is a sting
add they under your const
like this
entireChat: {{conversation.SummaryAgent.transcript}},
Maybe you need some more to make it work, but I have a feeling the entireChat: {{conversation.SummaryAgent.transcript}}, or {{conversation.SummaryAgent.summary}} is helpful for what you are trying to do
g
like that: const workflow.wholeChat = {entireChat: {{conversation.SummaryAgent.transcript}}} ?
f
I'm not a good enough programer to know if it workds
but try it
Not sure if you need to make it a workflow varible first
idk
g
test it through zapier you mean?
f
Yeah
you already setup google sheet right
g
The problem is, I can't think of a questionthe chatbot can't answer
So this is only a backup thing
f
what color is the ocean
if it's not in your KB
g
It says that he'll only answer questions considering the company
it's also backed up by stack ai
If stack AI can't answer through ChatGPT, then the ticket will be sent
f
yeah then it is like 1/1000 that it can't answer
even if chatGPT doesn't know it will answer that
g
omg yes that is right
i need to change that, thanks bro
f
your welcome