Controlling a remote-end ESP8266 wifi module with cayenne

I have been working on controlling the devices and I need to control appliances at the remote end.
I want ESP8266 to behave as a slave. ESP will be connected to the relay to control appliance and this module will be placed on the remote end.
Now I have a raspberry pi as the master and I want to control ESP8266/send data to ESP8266 to control the relay. I dont want to use another ESP module with raspberry pi to communicate between the two ESPs. So I want to control the slave through cayenne.
Can you please help me how is it possible?
Thank you