Salesforce has signed a definitive agreement to acquire Braze, a customer-engagement platform, for $5.66 billion.