Oie,
Estou tentando fazer a transferência do usuário de um bot a outro com um "input fantasma", via api, mas não estou conseguindo.
Bot 1 - Main
Bot 2 - Atendimento
Router geral dos bots
O cliente entra no bot 1 e caso ele digite que quer falar com atendimento ele deveria ser direcionado ao bot 2, sem a necessidade de ter um input, e segue o fluxo com o input fantasma.
Essas são as requisições que estamos fazendo.
https://http.msging.net/commands
KEY: ROUTER
{
"id": "={{$execution.id}}",
"to": " [removed by moderator] ",
"method": "set",
"uri": "/contexts/{{id}}/Master-State",
"type": "text/plain",
"resource": " [removed by moderator] "
}
https://http.msging.net/commands
KEY: ROUTER
{
"id": "={{$execution.id}}",
"to": " [removed by moderator] ",
"method": "set",
"uri": "/contexts/{{ 9S }}/stateid@ab1cae8a-af6e-474b",
"type": "text/plain",
"resource": "onboarding"
}
https://http.msging.net/messages
KEY: ROUTER
{
"id": "={{$execution.id}}",
"to": "{{ id }}",
"type": "application/vnd.lime.redirect+json",
"content": {
"address": " [removed by moderator] ",
"context": {
"type": "application/json",
"value": {
"team": "Service Desk"
}
}
}
}

