Skip to content

Conversation

@ascg
Copy link

@ascg ascg commented Jul 13, 2019

I have tweaked the default handling of intents a bit:

As a smaller change, Peeqo looks up the responseText from Dialogflow (or the response from any other intent engine) or the intent name on Giphy if no intent has been defined in dialogflow-intents.js. While playing with Peeqo this has been one of the most important changes I've made so far because it allows me to add many new intents on Dialogflow without having to touch Peeqo's code.

I also propose a new skill structure which allows to add new intents in a more modular way without having to change dialogflow-intents.js. This makes it easier to fetch future updates from the Git rep without having to re-write existing skills/intents. It should also allow people to add new intents or skills which are compatible with future intent engines. Furthermore, it would be easier to download standalone skills or intents and simply copy them into one directory without having to touch any other code.

As a demo I have added a new datetime skill which displays the current date and time.

Adrian added 2 commits July 14, 2019 00:22
…emented in a more modular way; also Peeqo looks up the responseText or intent name by default

Added new skill structure and lookup of responseText or intent name
@ascg ascg changed the title Defaultskillhandling Default skill and intent handling Jul 14, 2019
Copy link

@mikewright-button mikewright-button left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. And Peeqo is definitely in need of a good way to quickly add more skills without modifying the base code.

@nalybuites
Copy link

I managed to comment with my work account instead of my personal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants