Skip to content

bvigne/CSML_Wonderfood

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSML

This is a CSML bot created to find recipes from Edamam's Recipe Search API with Startup plans.

Installation

You can upload this bot on https://studio.csml.dev. In order to do so, clone this repo, import the file wonderfood.zip.

Functions

search_recipe

Functions are automatically added to your newly imported chatbot, you only need to add environment variables. Yet you might want to edit functions. To upload a modified function, 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

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.

Links

Clevy

CSML-platform

CSML-beta-access

CSML-documentation

Edamam

About

Recipes finder build on CSML language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published