Create dashboard extensions for Tableau. The extensions are web apps that can have two-way communication with Tableau.
This site will get you up and running with Tableau extensions. The Tableau Extensions API samples and documentation are all open source.