For retail (Dragonflight onwards) I recommend using the addon Leatrix instead.
It has an automate gossip feature that should cover your needs.
This addon works for ALL Classic versions of the game, and up to Shadowlands for retail.
General:
- Automatically selects NPC dialogue option if only 1 option is available.
- Automatically opens personal bank by default when clicking Jeeves (for engineers).
BFA:
Automatically selects the first option of NPC dialogue for the following NPCs:
- Garona Halforcen (Horde Mission Table troop recruitment)
- Master Mathias Shaw (Alliance Mission Table troop recruitment)
- Natal'hakata (Horde Zandalari Emissary)
- Muka Stormbreaker (Horde flightmaster in Stormsong Valley)
Legion:
- Automatically selects the option to open the Rogue Order Hall doors in Legion from all 3 NPCs.
Notes:
- You'll know when Auto Gossip has activated by seeing a small message in your chatbox.
- Auto Gossip will cancel out automatically if the NPC has quests available or active to avoid overlaps and clashes with other similar addons.
Hold down any modifier key (shift / ctrl / alt) whilst right-clicking the NPC to show the dialogue options as normal.