Javascript Code not returning as a variable
I've created a javascript block to get the current date and drag-dropped it into my agent step block so that it executes first. My agent step uses an API meant to gather appointment times and it requires the current date. But for whatever reason, even though the log says that the code ran successfully, the API does not utilize the variable that it provides; it's like the variable wasn't supplied at all. What am I doing wrong? Do I need to create a path for the Javascript step? How can I connect it if it's in the same block as the agent step?
3 Replies
Have you included the current date variable in your agent instructions so it knows what the date is?
I have {currentDate} as a variable inside the api web address. Can you give me an example of how to specify it for the agent? Like, is it a simple instruction line or a path or...?

sensitive-blue•3mo ago
@Cr4shBarcode https://www.youtube.com/watch?v=Ryip1RnLRhw