https://discord.gg/botpress logo
Hello, guys! I have following code in javascript n...
# 💻developers
g
Hello, guys! I have following code in javascript nodejs
Copy code
axios({
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    data: {
        type: "text",
        text: message.body
    },
    url: "http://127.0.0.1:3000/api/v1/bots/bot-test/converse/552298120000"
}).then(async res => {
Is there some way for me to send custom data to botpress using data field? E.g.
Copy code
data: {
        type: "text",
        text: message.body
        my_param: 'test'
    },
And how can I get this value in botpress? I'm using 12.31.8 version for my botpress in docker-compose
Copy code
version: "3.6"
services:
    botpress:
        image: botpress/server
        ports:
        - 3000:3000
        container_name: botpress
        volumes:
        - botpress-data:/app/data
        environment:
        - API_URL=${API_URL}
        networks:
        - rede-host


volumes:
  botpress-data:
networks:
  rede-host:
4 Views