Salesforce has reached a deal to acquire RelateIQ, a Palo Alto, Calif.-based startup. The deal values RelateIQ at a combined $390 million.

Salesforce will issue shares worth about $350 million in exchange for all shares of RelateIQ. The filing says Salesforce expects to issue between 6.2 million and 7.6 million shares. RelateIQ has $40 million in cash from its latest VC round.

RelateIQ has built what it calls a “relationship intelligence” platform that uses machine learning to automatically capture data from email, calendars and phone calls to provide users with insights into their working lives in real time. 

RelateIQ had raised about $69 million in venture capital investments. The latest was that $40 million Series C announced in March and led by Redpoint Ventures with the participation of Kleiner Perkins Caufield & Byers, Felicis Ventures and the News Corporation. That round valued RelateIQ at $245 million.  Prior investors included Battery Ventures and Accel Partners.

To access the SEC filing click here.