Turn-Io-Adapter

Transform API

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

Overview

The turn-io-adapter service is a wrapper to transform the Reap Benefit request format to the DIGIT PGR request format. This service has a transform API that constructs the required PGR request from the request message sent from the Reap Benefit system. Reap Benefit system consumes the transform 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 complaints, a WhatsApp message is sent to citizens.

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 citizens 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

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 the 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.

Integration Steps

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

Last updated

Was this helpful?