{"id":22218975,"url":"https://github.com/ajamous/dialogflow_restcomm","last_synced_at":"2025-10-24T06:43:53.663Z","repository":{"id":54849855,"uuid":"181357634","full_name":"ajamous/DialogFlow_Restcomm","owner":"ajamous","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-25T14:59:57.000Z","size":68,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-20T02:49:12.081Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ajamous.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-14T19:19:18.000Z","updated_at":"2019-05-21T18:38:11.000Z","dependencies_parsed_at":"2022-08-14T04:40:50.106Z","dependency_job_id":null,"html_url":"https://github.com/ajamous/DialogFlow_Restcomm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajamous%2FDialogFlow_Restcomm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajamous%2FDialogFlow_Restcomm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajamous%2FDialogFlow_Restcomm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajamous%2FDialogFlow_Restcomm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajamous","download_url":"https://codeload.github.com/ajamous/DialogFlow_Restcomm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245415998,"owners_count":20611651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T22:30:02.943Z","updated_at":"2025-10-24T06:43:53.565Z","avatar_url":"https://github.com/ajamous.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction\n\n### Coffee Agent\nThis is a coffee ordering SMS application powered by Google's machine learning and Ai + Restcomm Cloud.\n\nThis agent allows your app to help users with order coffee drinks, snacks, and other merchandise from a coffee shop service. \n\n* Examples: \n\nUser: I’d like a coffee to go. \nUser: Can I get a small iced latte with low fat milk? \nUser: Two medium cappuccinos please.  \nUser: Can I get three doughnuts please? \nUser: I’d love to get a bagel with cream cheese. \nUser: I’m hungry. \nUser: I would like to order a gift card with $50 on it. \nUser: I’m looking for a present.\n\n\n#### Installation\n* clone this project:\n\n    ``git clone https://github.com/ajamous/DialogFlow_Restcomm.git``\n\n* then install dependencies:\n\n    ``cd DialogFlow_Restcomm/``\n    \n    ``composer install``\n#### DialogFlow and Google setup:\n* visit dialogflow.com and login to your account\n* from the left menu, click on \"prebuild Agents\" and import the \"Coffee Shop\" for example agent.\n* it will ask you to create a Google project or use an existing one.\n* after importing, click on the gear next to the agent name on the left menu.\n* click on the service account link, to visit Google console.\n* click on the same service account again inside Google console.\n* click on Edit, then **Create Key**, choose **JSON** and put the downloaded file in the **root** of this project.\n\n#### Complete installation\n* copy the .env file `cp .env.example .env` and open for edit\n* set **database** parameters.\n* rename the downloaded JSON file to `AGENT_NAME.json` replace AGENT_NAME with the Agent Name that you are using, this will also be the active end point for this Agent `/AGENT_NAME`\n* then run `php artisan migrate` to create the database tables.\n* and finally create a user with a simple token to call the API using\n`php artisan generate:token`\n\n #### Testing The Setup\n to test the API, use any REST client to make a POST request to the end point `/{AGENT_NAME}`\n  for example:\n `/coffee` for Coffee Agent.\n `/banking` for Banking Agent.\n with the headers:\n \n `authorization: Bearer YOUR_GENERATED_TOKEN_HERE`\n \n `content-type: application/json`\n \n and  the body\n \n {\"sms\":\"Hello\"}\n \nif everything is setup correctly you should get a response like this one\n\n\n``{\n  \"response\": \"Good day! I have a lot coffee and snacks. What can I get you to drink?\"\n  }``\n  \n #### Restcomm (RVD) Setup Guide \n  \nIn progress.. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajamous%2Fdialogflow_restcomm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajamous%2Fdialogflow_restcomm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajamous%2Fdialogflow_restcomm/lists"}