Custom service that integrates with Intercom APIs and sends out daily emails with a list of open conversations for X days/hours at the time specified by the user.
hasura quickstart rishikumars/Intercom-open_conversations
.
- Get the apk of the app from here.
- Install on your device.
- Enter details as per requirement of open conversations and submit.
Add your extended access intercom token in intercomconfig.py
to enable connection to intercom.
intercom = Client(personal_access_token='extended_access_token_here')
Setup you email server in email.py
by configuring it with valid credentials.
# email server
app.config['MAIL_SERVER']='smtp.gmail.com'
app.config['MAIL_PORT'] = 465
app.config['MAIL_USERNAME'] = 'test@gmail.com'
app.config['MAIL_PASSWORD'] = 'test-password'
app.config['MAIL_USE_TLS'] = False
app.config['MAIL_USE_SSL'] = True
# administrator list
ADMINS = ['test@gmail.com']
Make a POST
request to the endpoint /mailconversations
with the correct headers and body.
Find API endpoint documentation here.
Content-type
application/json
{
"days" : "days",
"hours" : "hours",
"minutes" : "minutes",
"time_hour" : "time_hour",
"time_minute" : "time_minute",
"emailid" : "emailid"
}
This is a fully functioning native applications using react-native components for UI and Python-flask for back end.
The react-native code lies in Intercom-open_conversations/react-native directory.
- Install
node_modules
. Runnpm install
from thereact-native
directory. $ cd react-native && npm install
.- Get your cluster name. Run
hasura cluster status
. Copy the cluster name. - Go to react-native/src/hasuraAPi.js. Add your cluster name to this file.
- Keep the android emulator running.
- Run
react-native run-android
from the react-native directory. App will open up on your emulator.
This is a dummy and will not work unless you have an Intercom account with proper access and edit in your extended access token and your email credentials from which the conversations will be fetched and a daily mail to the user be automated respectively.
- Anuja Negi - Python Flask
- Rishi Kumar - React Native