{"_id":"54bc3666e55d192000a62ef1","project":"53844557a43e08da4677be0e","category":{"_id":"54bb05cf9741c81500078f73","pages":["54bc3666e55d192000a62ef1","54bc89693e9c780c00303844","561454290ab2550d00166d9d","5614eaac8113d20d00082e6d"],"project":"53844557a43e08da4677be0e","version":"53844558a43e08da4677be12","__v":4,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-01-18T01:01:03.808Z","from_sync":false,"order":1,"slug":"integration-by-email-type","title":"Integration by email type"},"user":"5384345d90c19d5e43a8170c","version":{"_id":"53844558a43e08da4677be12","__v":8,"project":"53844557a43e08da4677be0e","createdAt":"2014-05-27T07:57:12.136Z","releaseDate":"2014-05-27T07:57:12.136Z","categories":["53844558a43e08da4677be13","538619e1ef91f96d49aa1a0b","541e82877eb16bb64f83c0ca","5445a073c3eb3808000c76b2","5445a098c3eb3808000c76b3","54bb05ab522f03150054d9e8","54bb05cf9741c81500078f73","55b7d0e5568be2230092bb92"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"false","version_clean":"1.0.0","version":"1.0"},"__v":10,"updates":["5567a147820d1a3700874e6b"],"next":{"pages":[],"description":""},"createdAt":"2015-01-18T22:40:38.536Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"With Behavioral emails, you will want to integrate data that will enable you to create the behavioral rules that will trigger the email. There are a couple of things that will be important for this type of integration:\n\n##**SENDING EVENT DATA TO KNOWTIFY**\nIt is highly likely that you will want to ship information about your users' activities to Knowtify as they happen. For example, when a new user signs up, uploads a photo, assigns a task, etc. \n\nYou can send event data to Knowtify in several ways:\n\n- Through our [standard API](http://api.knowtify.io/v1.0/docs/knowtify-api-basics). You will simply create a call to send over data as an event happens. \n- Through our [JavaScript API](http://api.knowtify.io/v1.0/docs/javascript-widget). \n- Through one of our [integration partners](http://api.knowtify.io/v1.0/docs/integrations-intro) that support event data. \n\n##**INCREMENTING DATA POINTS**\nMany times, your behavioral rules will be based on a user taking a specific number of the same event in your app. In this case you want a way to create a count of those events by incrementing a number each time the event occurs. \n\nYou can increment (or decrement) data points in Knowtify with a regular API request (to data/edit or contacts/upsert) or JavaScript API request using either \"+1\" or \"-1\" as a data point value and we'll do the math on our end. More about [incrementing data points here](http://api.knowtify.io/v1.0/docs/incrementing-data-points).\n\nFor those connecting to Knowtify via [Segment.io](http://api.knowtify.io/v1.0/docs/segmentio), integrating data points is done automatically.","excerpt":"How to integrate data to power your Behavioral emails.","slug":"behavioral-emails","type":"basic","title":"BEHAVIORAL EMAILS"}

BEHAVIORAL EMAILS

How to integrate data to power your Behavioral emails.

With Behavioral emails, you will want to integrate data that will enable you to create the behavioral rules that will trigger the email. There are a couple of things that will be important for this type of integration: ##**SENDING EVENT DATA TO KNOWTIFY** It is highly likely that you will want to ship information about your users' activities to Knowtify as they happen. For example, when a new user signs up, uploads a photo, assigns a task, etc. You can send event data to Knowtify in several ways: - Through our [standard API](http://api.knowtify.io/v1.0/docs/knowtify-api-basics). You will simply create a call to send over data as an event happens. - Through our [JavaScript API](http://api.knowtify.io/v1.0/docs/javascript-widget). - Through one of our [integration partners](http://api.knowtify.io/v1.0/docs/integrations-intro) that support event data. ##**INCREMENTING DATA POINTS** Many times, your behavioral rules will be based on a user taking a specific number of the same event in your app. In this case you want a way to create a count of those events by incrementing a number each time the event occurs. You can increment (or decrement) data points in Knowtify with a regular API request (to data/edit or contacts/upsert) or JavaScript API request using either "+1" or "-1" as a data point value and we'll do the math on our end. More about [incrementing data points here](http://api.knowtify.io/v1.0/docs/incrementing-data-points). For those connecting to Knowtify via [Segment.io](http://api.knowtify.io/v1.0/docs/segmentio), integrating data points is done automatically.