In my bot I run a code to manipulate data returned from a API call.
The returned variable is an array whit this structure: array_company = {"company":"BRAND","date":"15/11/2023","time":"10:00","day":"Sunday"}';
I would like to know if, in the message block, I can access the "company" property from the "array_company" variable.
The code to be execute is as follows:
let array_company = '{"company":"BRAND","date":"15/11/2023","time":"10:00","day":"Sunday"}';
return { variables: { array_company: array_company },};
Example bot:
[upl-image-preview url=https://forum.promptchat.com/assets/files/2023-11-13/1699893554-158094-image.png]
Link to chatbot: https://app.bria.chat/chatbot/10/edit
Link to Company: https://app.bria.chat/companies/2/edit/0
Thank you.