Yes, that’s exactly the right approach @dennis
Using n8n with a Google Sheet (or DB) as the lookup table works very well. Retell can call a dynamic function, pass the detected intent/name, n8n looks up the associated number, and returns it for the transfer.
This keeps the prompt clean, scalable, and easy to maintain. I can help you wire this end-to-end if you want.