auto build interaction codes in html