Hey guys In the execute card Can i have an import...
# 🌎general
m
Hey guys In the execute card Can i have an import statement like this?? import nlp from "nlp @famous-jewelry-85388 Can you help here 😅
f
Nope, you can't. What are you trying to achieve?
m
The issue i had yesterday Trying to extract information from an email content and saving them in a variable I was able to use a nlp library to do that Would have shared the code here But it's over 500 lines
It works well for me when i try it on my IDE
f
Understood. Why don't you host an API that does this for you? Then call that API from Botpress?
m
Oh yeah I've done that now
But i'm having a little issue
I'm calling this on postman and i'm getting data
I'm doing that on botpress and no respinse
f
Is this is it?
Can you add more logs around it?
and when loggin the response, do something like "console.log(
response ${JSON.stringify(res.data)}
)"
3 Views