Chatbot payload input timer - Switch till "?:?"

Whats the simplest route?

I'm wanting a manually (time settable via chatbot) timer switch to pass payload message thru one output to trigger thermostat to a specific temp ie: 19*C.

Then trigger a second output after a manually set time to send the payboad to reset the thermostat to its programmed schedule.

Chatbot will ask till what time do you want the switch on till? reply ie: 10pm

Example flow here: