Best way to have an NPC behavior talk to/from a creative device?

I used another creative device as the NPC controller. Not sure if this is the only option but it works.