Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

player_prequel with summary to CELA_DEV #86

Open
wants to merge 12 commits into
base: cela-dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions .github/workflows/function-deploy-cela-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@

name: functions deploy

on:
push:
branches: [ cela-dev ]
paths:
- 'webhooks/**'
- '.github/workflows/function-deploy-cela-dev.yml'

jobs:
deploy:
name: "Deploy Firebase functions"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

env:
working-directory: './webhooks/functions'
project-id: 'cela-2'
defaults:
run:
working-directory: './webhooks/functions'

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name : GITHUB CONTEXT
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"

- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm ci --no-audit
working-directory: ${{ env.working-directory }}

- name: test
run: npm test
working-directory: ${{ env.working-directory }}

- name: lint
run: npm run lint
working-directory: ${{ env.working-directory }}

- name: build
run: npm run build
working-directory: ${{ env.working-directory }}

- name: set commit name to function config
uses: w9jds/firebase-action@master
with:
args: functions:config:set debug.message=\"${{ github.event.head_commit.message }}\" --project ${{ env.project-id }}
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
PROJECT_PATH: './webhooks'

- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only \"functions:ActionsOnGoogleFulfillment\" --project ${{ env.project-id }} --message \"${{ github.event.head_commit.message }}\"
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
PROJECT_PATH: './webhooks'
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@

node_modules
service_account.json

.nyc_output/
firebase-debug.log
ui-debug.log
6 changes: 5 additions & 1 deletion sdk/custom/intents/another_one.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
{}
trainingPhrases:
- prochain
- suivant
- page suivante
- un autre
11 changes: 10 additions & 1 deletion sdk/custom/intents/bookshelf.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
{}
trainingPhrases:
- voir mon étagère
- consulter ma liste personnelle
- voir ma liste personnelle
- liste personnelle
- consulter mon étagère
- étagère
- mon étagère
- bibliothèque
- ma bibliothèque
5 changes: 4 additions & 1 deletion sdk/custom/intents/by_genre.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
{}
trainingPhrases:
- par genre
- genre
- je préfère par genre
5 changes: 4 additions & 1 deletion sdk/custom/intents/by_theme.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
{}
trainingPhrases:
- par thème
- thème
- je préfère par thème
7 changes: 6 additions & 1 deletion sdk/custom/intents/collections.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
{}
trainingPhrases:
- recommandations
- collections
- navigue dans les collections
- sélections
- navigue dans les sélections
8 changes: 8 additions & 0 deletions sdk/custom/intents/current_book.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
trainingPhrases:
- Reprendre ma lecture
- Reprends ma lecture
- Reprends
- Reprends le dernier livre
- Reprends la lecture
- Reprendre la lecture
- Reprendre
7 changes: 7 additions & 0 deletions sdk/custom/intents/en/bookshelf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
trainingPhrases:
- personal list
- browse my bookshelf
- book shelves
- book shelf
- my bookshelf
- bookshelf
2 changes: 1 addition & 1 deletion sdk/custom/intents/en/by_genre.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ trainingPhrases:
- by genre please
- genre
- I prefer by genre
- I prefer to get a book selection by genre
- I prefer collections by genre
- by genre
1 change: 1 addition & 0 deletions sdk/custom/intents/en/collections.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
trainingPhrases:
- recommendations
- collections
- Browse collections
5 changes: 5 additions & 0 deletions sdk/custom/intents/en/current_book.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
trainingPhrases:
- Resume
- Resume reading
- Resume playback
- resume the last book
1 change: 1 addition & 0 deletions sdk/custom/intents/en/learn_more.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
trainingPhrases:
- information
- learn more
5 changes: 5 additions & 0 deletions sdk/custom/intents/en/player_prequel_back.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
trainingPhrases:
- back to collections
- back to selections
- back to the list
- back
2 changes: 2 additions & 0 deletions sdk/custom/intents/en/player_prequel_resume.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trainingPhrases:
- resume reading
3 changes: 3 additions & 0 deletions sdk/custom/intents/en/player_prequel_start.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
trainingPhrases:
- start reading
- start
6 changes: 6 additions & 0 deletions sdk/custom/intents/en/player_prequel_summary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
trainingPhrases:
- Information
- Info
- Description
- Summarize
- Summary
6 changes: 6 additions & 0 deletions sdk/custom/intents/en/recent_books.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
trainingPhrases:
- last book
- play the last book
- last books
- recent
- recent books
1 change: 1 addition & 0 deletions sdk/custom/intents/en/repeat.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
trainingPhrases:
- again
- repeat
- i do not understand
8 changes: 8 additions & 0 deletions sdk/custom/intents/en/search.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
trainingPhrases:
- search for a book
- search for a book by ($query 'Ernest Hemingway' auto=false)
- I want to search for a book
- search for a specific book
- I am looking for ($query 'The Little Prince by Antoine de Saint-Exupéry' auto=false)
- search
- find
- search for
- I am looking for a book ($query 'The Little Prince by Antoine de Saint-Exupéry'
auto=false)
- I want to listen ($query 'this book title' auto=false)
Expand Down
13 changes: 9 additions & 4 deletions sdk/custom/intents/en/selects_book.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
trainingPhrases:
- ($number 'four' auto=true)
- ($number 'five' auto=true)
- number ($number 'five' auto=true)
- number ($number 'four' auto=true)
- number ($number 'three' auto=true)
- the ($number 'fifth' auto=false)
- the ($number 'fourth' auto=false)
- the ($number 'first' auto=false)
- the ($number 'second' auto=false)
- the ($number 'third' auto=false)
- the number ($number 'one' auto=false)
- the number ($number 'three' auto=true)
- ($number 'three' auto=true)
- ($number 'two' auto=true)
- ($number 'one' auto=false)
- the ($number 'two' auto=true)
- the ($number 'one' auto=false)
- number ($number 'two' auto=false)
- number ($number 'one' auto=false)
3 changes: 2 additions & 1 deletion sdk/custom/intents/help.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
trainingPhrases:
- aide
- aider moi
- aide moi
- de l'aide
1 change: 1 addition & 0 deletions sdk/custom/intents/learn_more.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
trainingPhrases:
- en apprendre plus
- en savoir plus
- information
1 change: 1 addition & 0 deletions sdk/custom/intents/link_account.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
trainingPhrases:
- je veux me connecter
- me connecter
1 change: 1 addition & 0 deletions sdk/custom/intents/maybe_later.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
trainingPhrases:
- plus tard
- peut être plus tard
5 changes: 5 additions & 0 deletions sdk/custom/intents/player_prequel_back.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
trainingPhrases:
- Revenir aux sélections
- Revenir aux collections
- Revenir à la liste
- revenir à la liste
2 changes: 2 additions & 0 deletions sdk/custom/intents/player_prequel_resume.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trainingPhrases:
- Reprendre la lecture
4 changes: 4 additions & 0 deletions sdk/custom/intents/player_prequel_start.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
trainingPhrases:
- commencer la lecture
- démarrer
- démarrer la lecture
5 changes: 5 additions & 0 deletions sdk/custom/intents/player_prequel_summary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
trainingPhrases:
- information
- info
- écouter le résumé
- résumé
7 changes: 7 additions & 0 deletions sdk/custom/intents/recent_books.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
trainingPhrases:
- mes livres récents
- derniers livres
- livres récents
- voir mes derniers livres
- voir mes livres récents
- derniers livres lus
2 changes: 2 additions & 0 deletions sdk/custom/intents/repeat.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
trainingPhrases:
- répéter
- répête
- je ne comprends pas
16 changes: 16 additions & 0 deletions sdk/custom/intents/search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,19 @@ parameters:
- name: query
type:
name: string
trainingPhrases:
- chercher un livre
- chercher un livre audio
- chercher ($number1 'un' auto=true) nouveau livre
- chercher
- je veux chercher un livre audio
- je veux chercher un livre
- recherche un livre
- recherche
- je veux rechercher un livre
- Je recherche ($query 'Le Petit Prince par Antoine de Saint-Exupéry' auto=false)
- Cherche ($query 'La Peste' auto=false)
- Recherche ($query 'La Horla' auto=false)
- Je veux écouter ($query 'Ce livre' auto=false)
- Je veux lire ($query 'Ce livre par cet auteur' auto=false)
- Je cherche un livre écrit par ($query 'Auteur' auto=false)
3 changes: 3 additions & 0 deletions sdk/custom/intents/search_query.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ parameters:
- name: query
type:
name: string
trainingPhrases:
- ($query 'La Peste de Camus' auto=false)
- ($query 'Le Petit Prince par Antoine de Saint-Exupéry' auto=false)
27 changes: 20 additions & 7 deletions sdk/custom/intents/selects_book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,23 @@ parameters:
type:
name: actions.type.Number
trainingPhrases:
- ($letter 'c' auto=false)
- ($letter 'b' auto=false)
- ($letter 'C' auto=false)
- ($letter 'B' auto=false)
- ($letter 'ah' auto=false)
- ($letter 'A' auto=false)
- ($letter 'a' auto=false)
- Le ($number 'premier' auto=false)
- Le ($number 'second' auto=false)
- Le ($number 'troisième' auto=false)
- Le ($number 'quatrième' auto=false)
- Le ($number 'cinquième' auto=false)
- Numéro ($number 'un' auto=false)
- Numéro ($number 'deux' auto=false)
- Numéro ($number 'trois' auto=false)
- Numéro ($number 'quatre' auto=false)
- Numéro ($number 'cinq' auto=false)
- Le numéro ($number 'un' auto=false)
- Le numéro ($number 'deux' auto=false)
- Le numéro ($number 'trois' auto=false)
- Le numéro ($number 'quatre' auto=false)
- Le numéro ($number 'cinq' auto=false)
- ($number 'un' auto=false)
- ($number 'deux' auto=false)
- ($number 'trois' auto=false)
- ($number 'quatre' auto=false)
- ($number 'cinq' auto=false)
2 changes: 1 addition & 1 deletion sdk/custom/scenes/home_new_user_AccountLinking.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ slots:
writeSessionParam: AccountLinkingSlot
config:
'@type': type.googleapis.com/google.actions.conversation.v3.SignInSpec
opt_context: To keep using EDRLab
opt_context: ""
defaultValue:
sessionParam: AccountLinkingSlot
name: AccountLinkingSlot
Expand Down
6 changes: 6 additions & 0 deletions sdk/custom/scenes/home_user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ intentEvents:
- handler:
webhookHandler: home_user__intent__search
intent: search
- handler:
webhookHandler: home_user__intent__recent_books
intent: recent_books
- handler:
webhookHandler: home_user__intent__current_book
intent: current_book
- handler:
webhookHandler: home_user__intent__fallback
intent: actions.intent.NO_MATCH_1
Expand Down
3 changes: 3 additions & 0 deletions sdk/custom/scenes/info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ intentEvents:
webhookHandler: info__intent__yes
intent: membership
transitionToScene: actions.scene.END_CONVERSATION
- handler:
webhookHandler: info__intent__no
intent: "no"
- handler:
webhookHandler: info__intent__fallback
intent: actions.intent.NO_MATCH_1
Expand Down
Loading