Manage Integrations section makes your app possible to interact with many third-party systems/platforms by integrating them into your app back-end (brainCloud).
From the Manage Integrations page, you can:
Integrating Amazon GameLift for hosting dedicated game servers.
Streaming events data to your Apache Kafka Topic.
Integrating SAML for end-user authentication.
Streaming events data to your Segment data source.
Sending custom rich-text emails with your SendGrid account.
Sending error alters and daily reports to your Slack channels.
Controlling profanity with your WebPurify configurations.
To get started, find the Manage Integrations page on the brainCloud portal.
AWS GameLift
Amazon GameLift is a managed service for deploying, operating, and scaling dedicated game servers for session-based multiplayer games.
To authorize brainCloud to access your AWS GameLift resource, it is necessary to configure your AWS account information in this section.
For further details on how to integrate your GameLift servers with the brainCloud multiplayer system, please refer to the article here.
Kafka Integration
brainCloud offers Kafka integration in addition to Segment integration for DataStream events as well.
With Kafka and Segment, both supported out-of-the-box, there are literally hundreds (if not thousands) of systems that you can hook up to your brainCloud apps for deeper data analytics, data mining, etc.
Select a Kafka server provider and create a new Kafka instance on the server. Download the certs and keep them in your local file system somewhere for later use.
Create a Topic from the instance dashboard to hold the steaming event from brainCloud.
Find out the connection details of your broker's server, the security protocol that is applying for the broker's connection, and the SASL Mechanism if applicable.
Navigate to brainCloud Design | Integrations | Manage Integrations page and scroll to the Kafka section. Check [Enable Apache Kafka integration] checkbox.
Fill the info which you get from your Kafka server instance above to the required fields, and click [ Save Changes] button to save these configurations.
SAML Integration
brainCloud has been enhanced to support SAML for end-user authentication. This is mostly relevant for non-gaming* customers who want to integrate their brainCloud app with a corporate directory.
Our SAML authentication builds upon the External Authentication feature, providing several key endpoints that can be used for initiating calls and receiving callbacks from the SAML identity provider.
For more information, see Configuring SAML SSO.
Segment Integration
Segment is a customer data hub. Your app can send your Segment account information about your users and their activity, and you can pipe this data to hundreds of tools for analytics, marketing, and data warehousing.
With Segment configured, you can implement server-side integration with third-party analytics packages (like MixPanel) via our Segment integration
Browse to your Segment account home page and click Add Source to create a Source that will connect to your brainCould App.
Click this source and navigate to the Settings tab and API Keys section from the left panel, note down the SourceID, and Write Key.
Switch back to brainCloud portal Manage Integrations page. Check [ Enable Segment Integration] checkbox and put the required fields of your Segment Project ID (SourceID) and Write Key. Click [ Save Changes ] button to save the configuration to brainCoud.
Log out your brainCloud portal account and log in again, then browse to Design | Cloud Code | API Explorer page.
After authenticating a user, find DataStream Sevice and CustomPageEvent Operation, and run it. And run the other three other types of Events under this Operation selection as well. (CustomScreenEvent, CustomTrackEvent, SubmitCrashReport)
Open your Segment home page, check the tracking events from your associated Segment source from Debugger tab.
Note: There are many other events of your app that will be sent to Segment data hub as well, such as PostedTournamentScore, JoinedTournament, JoinedDivison, Identity Registered, etc. Those events will be classified to Identify: the user, Page and Screen: on what web page or app screen, Track: the specific action.
Navigate to Connections screen from the left panel, click the [Add Destination] button, choose your analytical platform and add to your brainCloud app associated source. You can select more than one platform to add.
Integrate the destination platform with Segment. The integration processing varies on the platforms, follow their individual document to achieve it. For example, in order to integrate Amplitude, you need to create a project and input your Amplitude API Key to Segment.
Save your Amplitude project API Key to Segment from the destination setting page.
Test the data delivery by selecting one event from the live events list and select the test destination to send it.
You should get the destination response from the Event Lifecycle screen.
Open your destination platform dashboard and check the sent test event. For Amplitude, find your project and check it from the Events tab. You can start to make your own custom data analysis dashboard on Amplitude then.
SendGrid Integration
brainCloud has SendGrid transaction email integration. By integrating brainCloud with their own SendGrid account, app developers can:
Utilize SendGrid for all Email Authentication-related emails (validation, reset password, etc.)
Customize the brainCloud-generated emails using SendGrid's template feature
Send emails to users via the new brainCloud Mail API
Refer to this knowledge base article for instructions on configuring the SendGrid for integration.
Slack Integration
With Slack integration, you can configure a custom channel (or channels) to receive alerts from selected categories, including:
chat - profanity filter violations
deploys - app deployments
hosting - room servers spinning up / down
integration - push notification expiry warnings
jobs - background reporting jobs started/completed
purchases - customer purchase notifications
Refer to this knowledge base article for the detailed implementation of configuring the Slack webhooks for integration.
Note: you can put only one Slack webhook URL to the Default Channel which will receive all category alerts, or you can separately put the different Slack webhook URLs to individual category channels which will only receive the specified category alerts.
WebPurify Integration
By configuring WebPurify integrations with your brainCloud app, you can utilize it to replace any profanity that might occur in your app chat/message or other specified fields.
Navigate to WebPurify website and create an account, go to the dashboard and click View your account, you will find an API Key under your account stats.
Scroll down to Customize Filter section to add the words to Block List or Allow List as you will. For example, if you add "amazon" onto the Block List, when you do the profanity check, the word "amazon" will be returned as a foundList.
Go back to brainCloud portal Design | Integrations | Manage Integrations page. Check the [Enable WebPurify Integration] checkbox. Copy that API Key over to brainCloud portal WebPurify configuration section API Key field, select the filter languages, and tick the user names filter if you want.
Browse to Design | Cloud Code | API Explorer page.
After authenticating a user, find Profanity Sevice and ProfanityIdentifyBadWords Operation, and run it as below. And play with the other two APIs under this Operation selection as well. (ProfanityCheck and ProfanityReplaceText)
(Note: Since we set "amazon" as a block word from WebPurify website configuration above, so the response will return it as a foundCount.)
Check the profanity detection stats change from WebPurify account after a few brainCloud profanity API calls.
Note:
ProfanityCheck() returns the number of foundCount;
ProfanityReplaceText() will actually replace bad words with a substitution character that you provide;
ProfanityIdentifyBadWords() returns a list of the bad words found (mostly useful for debugging).