> For the complete documentation index, see [llms.txt](https://uci.sunbird.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://uci.sunbird.org/use/developer/uci-basics/adapters.md).

# Adapters

## 1. Conversation Channel Adapters

Adapters convert information provided by channels (SMS, Whatsapp) for each specific provider to xMessages and vise versa. Adapters are gateway to the external services and resposible to recieving user response and sending response to users. Thus the two major functions of Adapters are

* Convert API/webhook data from channel (and provider) to xMessages
* Convert xMessages back to API/webhook data format for the specific channel(and provider)

A simplified diagram of what adapters do is shown below.

![](/files/VBLL7i19gpegYY1Ly1xd)

## 2. How to works

The adapter and the inbound service are linked together as shown in the figure below.

![](/files/DMuTZiVh4YQyZ1Zzg1DX)

Similarly, the adapter and the outbound service are linked in the following fashion.

![](/files/lCc6jFjxJ8kSAOXYX0Pj)

## 3. List of Existing Adapters

* Gupshup-Whatsapp
* Netcore-Whatsapp
* UCI Web Channel
* Firebase Adapter

## 4. How to create an adapter

[Click here](/use/developer/contribution-guide/create-an-adapter.md) to see how to create your own adapter.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://uci.sunbird.org/use/developer/uci-basics/adapters.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.
