# Digitized Citizen Services Automation via Soika External Chat Browser

### **1. Use Case Overview**

**Objective:**\
To provide a fully digital and conversational platform for citizens to access, manage, and pay for municipal services including Property Tax, Water Billing, Trade Licenses, Building Plan Approvals, and Grievances — all through a single AI-powered interface.

The Smart Jabalpur Citizen Services Agent, built using Soika AI, enables residents to complete municipal transactions seamlessly by integrating Base row Database, QR Verification, Email/SMS Notifications, and Stripe Payment Gateway.<br>

### **2. Business Value Proposition**

The Soika AI Citizen Service Agent acts as a digital municipal clerk — allowing citizens to access and complete essential public services from their phone or computer without needing to visit physical counters.

It provides a single conversational window for all citizen needs: filing a complaint, applying for a trade license, paying a property bill, or downloading official certificates.\
Through integrations with municipal systems, it handles query resolution, application intake, workflow routing, and payment collection automatically.

#### Key Benefits

* 24×7 service availability via chatbot or portal
* QR-based citizen verification for secure access
* &#x20;Integrated payment gateway for real-time transactions
* Automated record storage in Base row DB
* &#x20;Instant OTP verification and email notifications
* Paperless service experience with complete audit trails
* &#x20;Reduced operational load on municipal helpdesks
* Centralized digital audit trail for compliance and transparency

### **3. Flow Summary**

#### **Step I: Creation of AI Agent**&#x20;

> *User Prompt in Natural Language*
>
> *“Create an General AI Agent that allows citizens to request services like property tax, trade license, water bill payment, or grievance registration through chat or portal, and integrates with Base row DB and municipal APIs.”*
>
> *AI:*
>
> &#x20;*Welcome to Smart Jabalpur Services!*
>
> *Reply with a NUMBER to continue:*
>
> *1.Property Tax*
>
> *2.Water Billing*
>
> *3.Trade Licenses*
>
> *4.Building Plan Approval*
>
> *5.Complaints & Grievances*
>
> *6.Finance/Accounting integrations*

<figure><img src="/files/A8bqCrK3hyQGmKtSNoS6" alt=""><figcaption><p>Agent Creation by Natural Language Prompt</p></figcaption></figure>

#### **Step II :** Collect Citizen Details

* Using **QR Generator Tool**, the agent generates a **QR Code** embedding these details.
* The citizen scans the QR to confirm identity and approve details.

<figure><img src="/files/IfNbXbTxbz80N5JRStE5" alt=""><figcaption><p>Generation of QR Code </p></figcaption></figure>

#### Step III – Store Citizen Data in Base row DB

After confirmation, Soika AI Agent stores the details in **Base row Table:**

* **Table Name:** Citizen Details
* **Table ID:** 714911

<figure><img src="/files/0vEVEpVLd6tF7qqgPj5k" alt=""><figcaption><p>Creation of Database in Base row DB</p></figcaption></figure>

#### **Step IV – Email Verification via OTP**

* The agent verifies the user’s email ID — it must end with @gmail.com.
* Sends an OTP to the provided email address.
* Citizen enters the OTP in chat for validation.

If OTP is verified successfully → Proceed to next step.\
If not → AI prompts to re-enter or change email ID.

<figure><img src="/files/wvZok8T2okx6KVMXXJ4d" alt=""><figcaption><p>Generation of OTP by Agent and receiving it via Email</p></figcaption></figure>

#### **Step V – Retrieve Service Function Details**

* Once verified, the AI fetches available functions and service descriptions from Base row DB:
  * Table ID: 714895
  * Row ID: 5996284

Purpose: Retrieve service definitions, pricing, and related data dynamically.

| Function      | Description                       | Fee   |
| ------------- | --------------------------------- | ----- |
| Water Billing | Manage and pay monthly water dues | ₹1240 |
| Property Tax  | Check and pay annual tax          | ₹5600 |
| Trade License | Renew or register trade license   | ₹3500 |

#### **Step VI – Provide Service Details & Payment Link**

Based on citizen’s selected service number (from Step I), Agent provides the corresponding details and payment link.

**Example 1: Water Bill Payment**

*Water Bill Payment*

*AI:*

&#x20; *“Welcome to Smart Jabalpur Services! Reply with a NUMBER to continue: "*

*Citizen:*

&#x20; *“2”*

*AI:*

*“Your outstanding amount is ₹1,240 for September. Would you like to pay now?”*

*Citizen:*

&#x20; *“Yes.”*

*AI:*

&#x20; *“Please Pay in the link : <https://buy.stripe.com/test\\_8x2eVfdBkb9U6V1fzh3oA00>*

&#x20;  *Done ✅. You’ll receive a payment receipt via SMS and Email shortly.”*

#### **Step VII – Post-Payment Confirmation**

Once the user completes the transaction on Stripe, Soika AI:

* Sends an email confirmation titled “Payment Successful – Smart Jabalpur Services”
* Sends an SMS notification with receipt details
* Updates payment status in Base row Table (714911) with:
  * Payment ID
  * Date
  * Service Type
  * Amount
  * Status: “Success”

<figure><img src="/files/I5mvx8ulCpINo9hHZM7y" alt=""><figcaption><p>Payment Link and Email Confirmation</p></figcaption></figure>

#### External Chat Browser

<figure><img src="/files/lzRDjz3oJswB8nsHsQqG" alt=""><figcaption><p>Click on Edit AI -> Preview</p></figcaption></figure>

<figure><img src="/files/Bj3KIK0gJPwHExySRJPS" alt=""><figcaption><p>Interactive Platform - External Chat Browser</p></figcaption></figure>

#### Example of System Instructions

This agent allows users to access and manage their citizen services and records electronically, making it easier to handle payments and inquiries regarding water bills, property taxes, and licenses.\
Step I : “Hi.”\
AI:\
Welcome to Smart Jabalpur Services!\
Reply with a NUMBER to continue:\
1.Property Tax\
2.Water Billing\
3.Trade Licenses\
4.Building Plan Approval\
5.Complaints & Grievances\
6.Finance/Accounting integrations

Step II : You will ask for the user details such as name, email-id and phone number.\
Once the details are taken:\
Use details shared and make as json object as content\
It will generate a QR Code with the help of QR Generator which will have the user details in the QR Code. Scan the QR Code to confirm the details

Step III : You will also store the details in the Base row DB in Table Name: Citizen Details and Table ID 714911

Step IV: Once the details of citizen is stored, Agent has to verify the details.\
It is important to get the email id of the user ending with @gmail.com. Sent OTP to the respective email id. Once the OTP is entered by user. Proceed for Step IV

Step V: Once verified, based on the FUNCTIONS and NUMBER mentioned in Table ID 714895 in Base Row DB in ROW ID 5996284 ,agent will provide a DETAILS of it.

Step VI : Once the details are provided, Payment link will be shared to the citizen:- <https://buy.stripe.com/test\\_8x2eVfdBkb9U6V1fzh3oA00>

Step VII: Once the user click in the link: <https://buy.stripe.com/test\\_8x2eVfdBkb9U6V1fzh3oA00>\
Send Email as Payment as Successful.\
Also You’ll receive a payment receipt via SMS and Email shortly

Example:

Water Bill Payment\
AI:\
“Welcome to Smart Jabalpur Services! Reply with a NUMBER to continue: "\
Citizen:\
“2”\
AI:\
“Your outstanding amount is ₹1,240 for September. Would you like to pay now?”\
Citizen:\
“Yes.”\
AI:\
“Please Pay in the link : <https://buy.stripe.com/test\\_8x2eVfdBkb9U6V1fzh3oA00>\
Done . You’ll receive a payment receipt via SMS and Email shortly.”

Property Tax Query\
AI:\
“Welcome to Smart Jabalpur Services! Reply with a NUMBER to continue: "

Citizen:\
"1"\
AI:\
“Your annual tax is ₹5,600. ₹3,000 has been paid. Outstanding ₹2,600. Would you like to pay now or download your receipt?”\
Citizen:\
“Pay now.”\
AI:\
“Please Pay in the link : <https://buy.stripe.com/test\\_8x2eVfdBkb9U6V1fzh3oA00>\
Done . You’ll receive a payment receipt via SMS and Email shortly.”


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://soika-labs.gitbook.io/soika-mockingjay/use-cases/digitized-citizen-services-automation-via-soika-external-chat-browser.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
