Code Monkey home page Code Monkey logo

k15apidemo's Introduction

ServiceNow K15 API Demo

This project contains source code for the ServiceNow K15 breakout session titled Enabling Web API Integrations with ServiceNow.

Speakers

Special thanks to Grant Hulbert (@VoiceOfSoftware) for assisting in the demo preparation.

Architecture

Here is an overview of the demo architecture. Demo architecture diagram

Components

The demo consists of:


ServiceNow instance

ServiceNow logo

The ServiceNow instance is configured with one table to store participant phone numbers, and two Import Set web services to handle registering participants and triggering the bridge.

Component Table Description
Session Participants u_session_attendees Stores the registered phone numbers
Session Participants Import Set Web Service u_attendee_phone_number_imp_ws Registers a phone number
Urgent Incident Conf Trigger Import Set Web Service u_urgent_incident_conf_trigger Triggers opening a bridge from a transform script

The update set with these components can be found here.

Additionally, Notify API properties are configured as: NotifyNow configuration


Twilio configuration

Twilio logo

Twilio is configured to forward SMS messages received at the register phone number (312-313-1772) to the registration endpoint served by the Node.js app.

Twilio registration configuration

Additionally a separate Twilio number (312-488-1677) is configured to act as the bridge line -- this is the line from which calls and texts about the bridge are sent to participants.

Twilio bridge configuration


Node.js web application

Node.js logo

The Node.js application source code can be found here.

This app can be hosted on any server capable of running Node.js applications (for this demo we used a VM provided by Digital Ocean).

The app consists of a /register endpoint which proxies the incoming message from Twilio to ServiceNow using the Import Set API.

It also contains an index page to display the registration info and current count of participants, which uses the ServiceNow Aggregate API to retrieve the count from the u_session_attendees table.

Registration page


iOS applications

iOS logo

The iOS apps consist of an iPhone app and a Watch app which retrieve the most recent P1 incidents, and can trigger a bridge for the incidents.

They use the ServiceNow Table API to retrieve the P1 incidents, and the Import Set API to trigger opening a bridge for an incident. The Import Set Transform Map is configured with a transform script that uses ServiceNow's Notify API to open a bridge through Twilio.

The source code for the apps can be found here.

k15apidemo's People

Contributors

bryanbarnard avatar codersmith avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.