Based on their intelligence and the fact that they can perform slam attacks, I'd say treat them just like anything else intelligent and fully corporeal. If summoned using one of the various Summon Monster spells, then you can direct as you see fit for the duration. If not, perhaps make a Diplomacy check like usual.