How much of the system exists currently? Is the gate already motorized? Is it already activated by a keychain transmitter?
The good news is, what you are asking to do is fairly simple.
The bad news is, making it robust enough to work as a real-world system could get a little more complicated.
Initially, the hard part will be interfacing with the existing components, so we need as much detail about that as possible.