As @Watcher pointed out you need to send a number of bytes (packet) including an addressing scheme, and probably a bit more.
The master is putting a packet on the RS485 lines and you want only one slave to react.
First thing the slave needs to do is to detect the start of a packet, so it know when to start to listen.
Second there should be a recipient address, so the slave knows the packet is addressed to him or not. If not that slave can start waiting for the start of packet again.
It is very well possible that one slave can react on multiple addresses, where each address has a different function. Also consider a broadcast address that addresses all slaves. This latter is typical used for commands like reset or shutDown etc
Third (optional) you can add a sender address which allows the slave to verify who send the message. Typical this is only used in a multi-master environment.
Fourth there should be a command byte, so the slave knows what he is expected to do. If a slave only has one action the command can be optional.
Fifth the command could have parameters. These are typical formatted as a length and followed by that number of bytes. This allows arbitrary length parameters to be send. If the command only has a fixed set of parameters, the length is optional as the slave knows e.g. this command is followed by N bytes.
Then as @Watcher pointed out a checksum to verify the integrity of the packet, detect errors can be added. This is optional but it prevents the slave doing the wrong thing, or the right action with the wrong parameters. Typical checksums are CRC, Adler, Fletcher or the simplest a sum (mod 255) of all bytes in the packet (except the checksum itself).
Finally, and optional one can add a end of packet byte
How to apply
The layout of a packet can be simple to complex.
If you have 4 slaves that only make e.g. and ADC measurement and send it back the protocol could look like
<START><ADDRESS SLAVE>
Not even a command needed as the slave can only do one thing. The answer of the slave could be something like
<START><ADDRESS MASTER><ADDRESS SLAVE><LENGTH><DATA>...<DATA><CRC><END>
The address of the master is mandatory (typical 0) as you do not want to have other slaves react on accidental byte patterns that look like a command. The slave address is optional, but it helps to ensure that the master knows which slave responded. The CRC is to check for errors.
If a slave can do many things like e.g. it has 6 ADC’s and 10 IO lines, EEPROM etc. You get a more complex packet
<START><ADDRESS SLAVE><ADDRESS MASTER><COMMAND><LENGTH><DATA>...<DATA><CRC><END>
(think store these X bytes in EEPROM at location Y)
Depending on the COMMAND the slave can react differently (or not at all) or asks for a resend of the command as the CRC failed.
Advice is to start simple 1 master 1 slave and if that works add more nodes to the system.
Looking at the ASCII table (google), it already includes several usable bytes for building a packet like STX, ETX, and more.
There are many ways to extend protocols to do very fancy things. Multiple commands in one packet, address multiple slaves with same command in one packet, broadcasting, multipacket answers, error correction strategies, time outs, time to live, timed commands, encryption and way more.