Turn-Io-Adapter

Transform API

Objective: Reap Benefit system is one of the vendors that provide the chatbot services using the turn as backend services to communicate with citizen through chatbot. As part of the requirement, we need to create a complaint in digit platform when ever citizens raise the complaint through Reap Benefit chatbot.

Overview

The turn-io-adapter service is a wrapper to transform Reap Benefit request format to DIGIT PGR request format. This service has transform API that constructs the required PGR request from the request message sent from the Reap Benefit system. Reap Benefit system consumes the tranform API to communicate with the DIGIT PGR module.

In this process, once a complaint is created it sends a WhatsApp message to the citizen with a track link. Whenever some action is taken by ULB employees on complaint, a WhatsApp message is sent to citizen.

Pre-requisites

Before you proceed with the configuration, make sure the following pre-requisites are met -

  • Java 8

  • Rainmaker-PGR service is running

Key Functionalities

  • Complaints are generated on the DIGIT platform using the Reap Benefit system chatbot.

  • Messages are sent to citizen through WhatsApp when employees perform some action on the complaint.

Deployment Details

Deploy the following builds

  • rainmaker-pgr-db:v1.1.3-bb2961cf-13

  • turn-io-adapter:v1.1.3-bb2961cf-19

  • egov-searcher:v1.1.3-d43c421c-5

  • nlp-engine:v1.0.0-c3889d14-10

Note: Please refer to the following url for nlp-engine technical documentation - NLP Engine Service

Frontend commits

RAIN-2852 : PGR complaint details to show the complaint category issu… · egovernments/frontend@b7aa519

RAIN2851 : Citizen Otp screen fix to get previous logged session · egovernments/frontend@da2da15

Infra Configuration Details

1) turn-io-adapter: "http://turn-io-adapter.egov:8080/" (In service host configuration)

2) Add /turn-io-adapter/_transform in egov-mixed-mode-endpoints-whitelist configuration

3) Once you are done with 2nd step restart zuul pod

MDMS Data

Add name filed in complaint category master in PGR. Link for the data -

https://raw.githubusercontent.com/egovernments/egov-mdms-data/DEV/data/pb/RAINMAKER-PGR/ServiceDefs.json

Localisation Data

Push the localisation data for all the locality data with module as rainmaker-chatbot. Sample localisation object -

{ "code": "SC1", "message": "Azad Nagar - WARD_1", "module": "rainmaker-chatbot", "locale": "en_IN" }

Business Service / Workflow Configuration

NA

Actions & Role Action Mapping

Actions

Role Mapping

RoleAction Mapping

Data Setup

This is the samplerequest for _transform api to create a complaint

Integration Details

Integration Scope

Turn-io-adapter is integrated with Rainmaker-pgr application. Turn-io-adapter application internally invokes the rainmaker-pgr service to generate complaints.

Steps to Integration

  1. Turn-Io-adapter application to call turn-io-adapter/_transform to generate the complaint and takes the data from the PGR.

Last updated

Was this helpful?