Hello, every one.
I have a MySQL table:
INSERT INTO booking
(id
, date
, type
) VALUES
(1, ‘10/10/2017’, ‘treatment1’),
(2, ‘11/10/2017’, ‘treatment2’);
I would like to do a simple operation, the bot ask user to enter an ID, when user enter the ID, the bot will show the corresponding date of the ID.
I have tried as below, but it doesn’t work.
Bot : Ask a question
Test type question : Which id ?
Name : ask id
Connected MySQL account
Data:
id, {{ask_id.parsed_answer}}
Query:
select date from booking where id = :id
Name : Run a Query
Bot “ Send a message
The date of this ID : {ask_id.parsed_answer}} is {{date}}
May I know is there any idea how to make it worked? Many thanks !