https://discord.gg/botpress logo
Need help integrating net id service to my bot
# 🤝help
b
hey everyone , im trying to add nerugen.com net id service to my bot through api using execute code card, so my users can insert their net id and that should be stored for that user thought out the conversation, i was wondering did anyone do it or have a code so i can use + do i have to use user variables for storing the net id for each user ?
w
you can just use a capture card to get the user's net id, then save it to a table using a "insert record" card
b
can you help me with the Api ? to integrate the service and connect the api to my bot
w
what api do you mean?
b
w
i guess you just make a POST to https://net.nerugen.com/${net_id} ?
Copy code
javascript
  await axios.post('https://net.nerugen.com/${net_id}', {})
the net id variable should obviously be replaced by your actual variable
b
how do i store the response for givning it to Ai?
w
.
2 Views