evolution-api icon indicating copy to clipboard operation
evolution-api copied to clipboard

[PT][BUG]Evolution 1.6.0 não envia variáveis Typebot 2.20.0 não recebe Variáveis

Open asabocinski opened this issue 2 years ago • 2 comments

Evolution 1.6.0 não envia variáveis Typebot 2.20.0 não recebe Variáveis

Atualmente temos o Typebot 2.20 onde o mesmo é executado a partir de um POST /typebot/start/{{instance}} e onde no body dessa requisição são enviados valores.

Na versão 1.6.0 não está recebendo as variáres e com isso as mensagem no whatsapp não estão chegando com as mesmas

Passo a Passo

1 - Chamada no Evolution

curl --location 'https://{{base}}/typebot/start/{{instance}}'
--header 'Content-Type: application/json'
--header 'apikey: XXXXXXXXX'
--data '{ "url": "https://bot.example.com", "typebot": "l-dia1-chamada1", "remoteJid": "{{remotejid}}", "startSession": true, "variables": [ { "name": "nome_curso", "value": "teste" }, { "name": "bonus_desconto", "value": "bonus teste" }, { "name": "LINK_VENDA", "value": "https://link" } ] }'

2 - O Typebot executa mas não substitui as variáveis pelos valores

Captura de Tela 2024-01-04 às 19 33 54 Captura de Tela 2024-01-04 às 19 37 06 Captura de Tela 2024-01-04 às 19 37 38 Captura de Tela 2024-01-04 às 19 40 35

Ambiente:

  • Kubernetes 1.28
  • Evolution API 1.6.0
  • Typebot 2.20

asabocinski avatar Jan 04 '24 22:01 asabocinski

Mesma coisa na versao 1.6.1 e typebot 2.20.0

matheusfterra avatar Jan 05 '24 18:01 matheusfterra

Ja foi resolvido na versao 1.6.2 atualmente em desenvolvimento

DavidsonGomes avatar Jan 07 '24 22:01 DavidsonGomes