vocal messages
# 🤝help
m
hello , is there any way i could add sending a vocal message by the user in botpress studio?
a
Not yet @modern-finland-97226, but it is on our roadmap. In the meantime, you're welcome to make a post on #1111026806254993459
m
how about sending a file ?
a
can, but on some channels it's rendered as a download link https://botpress.com/docs/cloud/channels/overview/
m
why is it when i test an api request with postman it works fine but with botpress axios it is not working ?
a
some APIs have CORS requirements or other things that mean you can only run them in backend applications and not frontend ones (like Botpress)
Especially if you're authenticating with a basic token or sending sensitive info, you should avoid calling from the frontend because folks can see everything in your API call in their browser dev tools
m
oh okey ! could you please provide me with a solution so that i could use my application user credentials in botpress to make it look like a unified solution? in my case i'm consuming jira rest api endpoints, so to do that i need to use my jira account username and password. is there any way to pass those variables from my application to botpress ? do have any suggestion for a similar solution please :/
a
Jira should be accessible from the frontend. I'd recommend generating an API token and saving that as an environmental variable https://botpress.com/docs/cloud/studio/variables/#configuration-variables then you can make API calls using the "Execute Code" cards
m
thanks a lot ! i will try that , another question please and sorry to bother you , if the user sends a request with variables i want to extract , and they don't belong to the variables of capture info cards , is there a way to capture them ? for example , if tell the bot :"show me the comments of the issue with key: TIC-7" i want to extract "comments" and issue key "TIC-7" so that i could apply the proper code on them ? how to do that ?
a
I'd recommed creating entities. You can make a list entity for the differnt datatypes like "comment", "title", "description", etc, and a regex entity for the issue key. Then, when you create a capture card you can select this entity as the data type and that will greatly simplify extraction.
m
thanks a lot ! have a good day 😄
a
no worries, buddy. You too!
m
is there a way to capture 2 variables in a sentence ? i've created another entity and it works fine for the issue Key but can't capture more than one variable :/
a
can't capture multiple variables in one capture card, but who said you're limited to just one capture card? 😉 You can do two, three capture cards in a row and use some of the advanced configs like "extract from history" and "skip if already filled" to get that functionality
3 Views