Home
Security
Pricing
Dashboard
Search…
Quick start
Identifying users
Privacy
Support
User roles
Support tools
Salesforce + phone workflow
Troubleshooting
Localhost testing
Content-Security-Policy (CSP)
IFrames
Cohere session definition
Metrics and logs
Audit logs
Platform integrations
Google Tag Manager
Bubble.io
Shopify
Wix
Memberstack
Squarespace
Webflow
Salesforce Site
External Integrations
Slack integration
Microsoft Teams integration
Intercom integration
Zendesk integration
Sentry integration
Segment integration
Call recordings
Calendly
API
Voice widget
Calling API
Authenticating users securely
Multiplayer status events
Selective session recording
Getting current session URL
Powered By
GitBook
Segment integration
Cohere's Segment integration automatically forwards
Cohere.identify
calls
to Segment's client side SDK to identify users.
First, install the
cohere-js
package via NPM:
1
npm
install
cohere-js
# or, yarn add cohere-js
Copied!
Then, import Cohere and call
Cohere.init
like so:
1
import
Cohere
from
"cohere-js"
;
2
Cohere
.
init
(
"INSERT_API_KEY_HERE"
,
{
segmentIntegration
:
true
});
Copied!
All
Segment identify calls
will be forwarded to Cohere, and logged in users will automatically be identified in the Cohere dashboard.
If the integration isn't working, make sure that
analytics.load
is called
before
Cohere.init.
External Integrations - Previous
Sentry integration
Next - External Integrations
Call recordings
Last modified
28d ago
Copy link