This is a CSML bot created to find recipes from Edamam's Recipe Search API with Startup plans.
To build the entire bot, you have to create a new flow for each file in flows
folder. A CSML flow name is equal to his flow filename. Then copy/paste file content to the corresponding flow in the platform.
Default flow is start.csml
.
For each functions in function
folder, build and install them with the following process.
To build the zip file, run this command:
cd functions/append/src
zip -g ../myzip.zip index.py
Import is made from the CSML platform in functions
tab.
Click add custom function
and fill the following parameters:
Upload a function : (click and select myzip.zip previously created)
Function name : "append"
Handler : "index.handler"
Runtime : "python3.6"
Arguments : "list" (list)
"elem" (string)
"unique" (bool)
Environment variables :
Description :
Click Submit
, function would be created and can be used in CSML flows.
To build the zip file, run this command:
cd functions/search_recipe/src
pip install --target ./package -r requirements.txt
cd package
zip -r9 ../../myzip.zip .
cd ..
zip -g ../myzip.zip index.py
Import is made from the CSML platform in functions
tab.
Click add custom function
and fill the following parameters:
Upload a function : (click and select myzip.zip previously created)
Function name : "search_recipe"
Handler : "index.handler"
Runtime : "python3.6"
Arguments : "q" (string)
"from" (number)
"to" (number)
"ingr" (string)
"diet" (list)
"health" (list)
"cuisineType" (list)
"mealType" (list)
"dishType" (list)
"calories" (string)
"time" (string)
"excluded" (list)
Environment variables : "edamam_id" (Edamam API account id)
"edamam_key" (Edamam API account key)
Description :
Click Submit
, function would be created and can be used in CSML flows.