Adding features to the communication part

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

Thank you

Hello,

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

First, there is a tutorial in the documentation:

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

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

In my question file I have correctly set this

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

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

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

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

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

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