https://discord.gg/botpress logo
#🤝help
vocal messages
# 🤝help
m

modern-finland-97226

06/07/2023, 1:03 PM
hello , is there any way i could add sending a vocal message by the user in botpress studio?
a

acceptable-kangaroo-64719

06/07/2023, 1:06 PM
Not yet @modern-finland-97226, but it is on our roadmap. In the meantime, you're welcome to make a post on #1111026806254993459
m

modern-finland-97226

06/07/2023, 1:07 PM
how about sending a file ?
a

acceptable-kangaroo-64719

06/07/2023, 1:10 PM
can, but on some channels it's rendered as a download link https://botpress.com/docs/cloud/channels/overview/
m

modern-finland-97226

06/07/2023, 2:01 PM
why is it when i test an api request with postman it works fine but with botpress axios it is not working ?
a

acceptable-kangaroo-64719

06/07/2023, 2:46 PM
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

modern-finland-97226

06/07/2023, 3:15 PM
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

acceptable-kangaroo-64719

06/07/2023, 3:20 PM
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

modern-finland-97226

06/07/2023, 3:28 PM
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

acceptable-kangaroo-64719

06/07/2023, 3:35 PM
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

modern-finland-97226

06/07/2023, 3:38 PM
thanks a lot ! have a good day 😄
a

acceptable-kangaroo-64719

06/07/2023, 3:40 PM
no worries, buddy. You too!
m

modern-finland-97226

06/07/2023, 4:39 PM
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

acceptable-kangaroo-64719

06/07/2023, 4:46 PM
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