# Adding features to the communication part

**URL:** <https://community.gladysassistant.com/t/ajout-de-fonctionnalite-a-la-partie-communication/6456>\
**Category:** Développement\
**Created:** [July 27, 2021, 9:16am UTC](https://community.gladysassistant.com/t/ajout-de-fonctionnalite-a-la-partie-communication/6456 "2021-07-27T09:16:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noham\_Choulant](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/noham_choulant/32/7644_2.png) [@Noham\_Choulant](https://community.gladysassistant.com/u/Noham_Choulant)\
**Post date:** [July 27, 2021, 9:16am UTC](https://community.gladysassistant.com/t/ajout-de-fonctionnalite-a-la-partie-communication/6456/1 "2021-07-27T09:16:14Z")

</div>

Hello,  
I would like to add features to the communication part of Gladys, do you have any documentation on this development?

Thank you

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [July 28, 2021, 12:36am UTC](https://community.gladysassistant.com/t/ajout-de-fonctionnalite-a-la-partie-communication/6456/2 "2021-07-28T00:36:09Z")

</div>

Hello,

Are you talking about coding an integration like the Telegram integration?

First, there is a tutorial in the documentation:

> **[Contributing on Gladys Assistant | Gladys Assistant](https://gladysassistant.com/docs/dev/developing-a-service/)**
>
> Gladys Assistant is an open-source project, and all its code is available on Github.

Then, I advise you to simply take inspiration from other integrations in the git 😊

---

<div class="post-metadata">

**Author:** ![Noham\_Choulant](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/noham_choulant/32/7644_2.png) [@Noham\_Choulant](https://community.gladysassistant.com/u/Noham_Choulant)\
**Post date:** [July 28, 2021, 10:58am UTC](https://community.gladysassistant.com/t/ajout-de-fonctionnalite-a-la-partie-communication/6456/3 "2021-07-28T10:58:08Z")

</div>

Thank you, what I would like to know is how to send information in the communication part of GLADYS. For example, if I ask «&nbsp;Definition of House&nbsp;» Gladys sends the data from my service. As for the WEATHER part

---

<div class="post-metadata">

**Author:** ![Noham\_Choulant](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/noham_choulant/32/7644_2.png) [@Noham\_Choulant](https://community.gladysassistant.com/u/Noham_Choulant)\
**Post date:** [July 30, 2021, 10:11am UTC](https://community.gladysassistant.com/t/ajout-de-fonctionnalite-a-la-partie-communication/6456/4 "2021-07-30T10:11:26Z")

</div>

In my question file I have correctly set this

{  
«&nbsp;label&nbsp;»: «&nbsp;wikipedia.get&nbsp;»,  
«&nbsp;questions&nbsp;»: [  
«&nbsp;Search %word%&nbsp;»  
]  
}

But impossible to get in classification or context to retrieve word: MyWORD

async function command(message, classification, context) {  
try {  
const options = {

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [August 4, 2021, 8:16am UTC](https://community.gladysassistant.com/t/ajout-de-fonctionnalite-a-la-partie-communication/6456/5 "2021-08-04T08:16:03Z")

</div>

We use the «&nbsp;node-nlp&nbsp;» library ([GitHub - axa-group/nlp.js: An NLP library for building bots, with entity extraction, sentiment analysis, automatic language identify, and so more · GitHub](https://github.com/axa-group/nlp.js)) for classification, it would be necessary to look at node-nlp to see how to extract a free phrase 🙂

For now, on the Gladys side, we only handle the extraction of words from a given list of words:

Example for extracting the room name: [https://github.com/GladysAssistant/Gladys/blob/master/server/lib/brain/brain.addRoom.js](https://github.com/GladysAssistant/Gladys/blob/master/server/lib/brain/brain.addRoom.js)

If you want to manage a free field, there is probably a line of code to add on the node-nlp side to say that free text injection is allowed
