I want to create a BackOffice where I can create questions (utterances) and answers (database table's content) on just one intent - on one custom skill.
I'll be using outsystems so I can't use node.js or java.
So I need to use a REST METHOD (API) -> I need to update the interaction model of one custom skill via REST. And I have no ideia how it's done.
BackOffice: Where the user can add questions and match it with the answers. Basically it's manipulating the Alexa for whatever question(s) we want to give the answers we want. When the admin/user adds a question to the database I need it to be updated do my interaction model (Utterances of my Intent of my Custom Skill)
The goal is to have a ChatBot, where you ask predefined questions and Alexa answers predefined answers.
Any tips?
Thank you so much,
Diogo Mendes
If I understand your need correctly, you should take a look at the Alexa Skills Kit Skill Management API (SMAPI). With that, you can update your interaction model by making a request to the API. The documentation shows you how to do that. However, this has a major downside. Changes to your interaction model will have to go through the certification process. (see this SO question)
Related
First of all, i'm not good at english, so this article may not be smooth.. Please understand.
I planned a chat-quiz game web application project using spring and react.
In my opinion, it is not difficult to implement a simple chat service using Spring WebSocket and React.
However, i can't think of a way to run the quiz in real-time chat service..
For example, assume that i have many quiz sets and one of this is "1+1=?"
First, the game stats through voting while chatting betwwen users.
Afterwards, a problem is given and users deduce the correct answer to the problem. (In this case, the question is "1+1=?" and the correct answer is 2)
When many chats come up at the same time as users infer the correct answer, If a chat corresponding to the correct answer comes up among many chats, I'm trying to write code that treats that problem as the correct answer. And then, the next question is asked.
In this application, I'm wondering how to determine if chat is an answer or not..
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I am very new to ionic and still trying to learn. Few things I can't get a direct answers on this, hope for some help me. I went through few tutorials are articles, have an basic idea of ionic.
I am trying to develop a "group app". the group has 50 members.
I wish to publish event listings in the group app. Updating will be done
every week. So i can't exactly recompile this into apk whenever I do updating.
Also, I noticed ionic has a template that has login page. Where exactly does the username database stored?
If i need an admin section within ionic app, will it be possible? Whats the recommended method to do this?
If possible, I want this to do without any cost at all. I have a normal wordpress website that uses mysql database.
please help. thank you.
I am very new to ionic and still trying to learn. Few things I can't get a direct answers on this, hope for some help me. I went through few tutorials are articles, have an basic idea of ionic.
it is apparent from your questions, you've been reading recipe and not tutorials. They may have been labeled tutorials, but they were not. You are asking way too many questions, and the topics are too broad (wide).
To answer your question, in order
I am trying to develop a "group app". the group has 50 members. I wish to publish event listings in the group app. Updating will be done every week. So i can't exactly recompile this into apk whenever I do updating.
Your conclusion is based on faulty logic, and not understanding how Cordova works.
Also, I noticed ionic has a template that has login page. Where exactly does the username database stored?
Username and password storage is your issue, not Cordova's.
If i need an admin section within ionic app, will it be possible?
Yes.
Whats the recommended method to do this?
That's up to you. But understand you will be building it your self, likely from scratch.
If possible, I want this to do without any cost at all. I have a normal wordpress website that uses mysql database.
It is possible, but you will likely want to use a REST API to talk to the mobile App.
As you can see, my response appear to be vague, but that is because your questions are too broad.
I recommend reading this FAQ
Top Mistakes by Developers new to Cordova/Phonegap
If you have any further questions, I recommend following up on Google Groups Best of Luck.
I am trying to develop a "group app". the group has 50 members. I wish
to publish event listings in the group app. Updating will be done
every week. So i can't exactly recompile this into apk whenever I do
updating.
you can do this using ajax requests to server to get new events
and this is pretty easy by ionic using angular JS but it just need some time to try and read on how to make a restful ionic application
this will help you get the events from the database when the application opened
Also, I noticed ionic has a template that has login page. Where
exactly does the username database stored?
online database, just ready my answer to your first question
If i need an admin section within ionic app, will it be possible?
Whats the recommended method to do this?
yes it is possible but it is not recommended to do it in your public app
better to make web app for that
If possible, I want this to do without any cost at all. I have a
normal wordpress website that uses mysql database.
it will cost you nothing and you can use the MySQL database of your website
Good luck, you can make it, it just need some time and some searches
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I have an trello api which retrives the card, list & board detail which is available on my trello using angularjs.
What my requirement is whenever i create or delete a card, list or board from trello account then a alert message should be shown with the particular name.
I have no idea what should i do.
Is there any trello api which shows the updated details for card, list or board?
If no then what whould be the solution for this query?
There are 2 main approaches you can do to achieve what you are hoping.
1 - The Pull Method - Requests to the API
You can pull a list of all the actions on all of the objects in the Trello API (lists, cards, boards, etc). You can then use this list to make decisions in your app to display alert messages based on the type of actions you are concerned about.
The Trello API even has a handy "since" parameter that you can send through to only get any actions since a certain time, or even since your last check, to make the decision on what to show a little easier.
You can send the requests as often as you wish to get potential data to create alerts. The time frame you do this can be anywhere from every 5 or 10 minutes, down to every 5 seconds for more real time notification.
This is a rather clunky way to do things, and means you have to do a lot of calls to the API that result in no notifications. This is a sub-optimal way of doing things.
But, this was the only method for accomplishing your goal until late 2013...
2 - The Push Method - Using Webhooks
In August 2013, Trello added the ability to create webhooks to their API. Webhooks allow you to create little triggers inside Trello that will let you know every time things change on their servers.
Now instead of checking and checking and checking the API to see if anything has changed, you can create a webhook, then let your application sit back and relax until something changes. Trello will send out a request when it needs to, and you can trigger the appropriate alert in your application.
Trello has some good documentation on how to create and manage your webhooks. Here are a few links I would suggest starting with:
The announcement of the release of webhooks, along with a bit better description about what they are - http://blog.trello.com/webhooks-are-here/
A nice getting started document on how to use Trello's webhooks - https://trello.com/docs/gettingstarted/webhooks.html
The nitty gritty API doc on how to actually implement the specific calls with the API - https://trello.com/docs/api/webhook/index.html
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am wondering if I will be needing a lot of API's for my angular application. This is a broad statement so let me explain a few things.
Lets say that on my page I have three selects (dropdown lists).
Fruits, Vegetables, Produce
They all have their own data,
Fruits (ID, Name, Importer Order Number, Importer Name).
Vegetables (ID, Name, Distributer ID).
Produce (ID, Name, Manufacturer Name).
So if I want to populate each of these select statements, will i have to make 3 seprate API calls? Or should I be making 1 API call returning each of these? Is it possible to make 1 API call to return all this data?
If so does anyone have a simple example?
I want to know whats best practice...
Thank you!
The answer is depend on what you want to achieve, if you want a full dynamic Ajax application the answer is Yes.
Referring back to your question and scenario, if the data on the HTML element required dynamic change while attending the application then you need a separate call for each element. If the data on the HTML element doesn't require dynamic change then you can put your data into single Master Model and bind the sub object of the Master Model for the required HTML element.
As example, a single Select HTML element wont required a dynamic change, but a component of Autocomplete Select might require a independent call due to large database call and filtering process on back-end.
Angular is a framework that enables you to create rich client applications for web browsers.
When you make a request to a server from a modern framework such as Angular, you are typically doing one of two things:
Requesting static resources such as html templates (partials), images, css, js, etc.
Requesting data, usually prepared as a REST request, and typically returning a string that is in JSON or XML format. This is no different from a typical AJAX request made by most common web applications today. Angular does provide a service for obtaining an HTTP client, but it's not proprietary by any means.
Your question refers to the design of your REST API, and has nothing to do with Angular the framework.
With that said, there are plenty tutorials on REST best practices. And here is an article on what to avoid when designing REST services.
This depends entirely on your backend script. It does not matter if you are using Angularjs, jQuery or plain XHR.
For example, I often use PHP. When I want to reduce the total number of API calls, I write my PHP script such that it returns a single JSON object that contains multiple 'columns' of data.
I have a question and hopefully you can steer me in the right direction.
I'm working on an application that needs some form of decision tree/work flow for lack of a better term. I'll describe it below for some clarity.
I have a request form that users will fill out on a web page. At the beginning of the form is a 'Referral Type'. Bases on the referral type selected some of the form questions will change. There could be 2, 3 or 4 groups of questions depending on the Referral type. Entire groups of questions can be pass or fail.
If the first group of questions fail..then the form stops processing, etc.
What would be the best approach to handle this? Would WPF work well in this situation?
WPF is the Windows Presentation Foundation and is more about the User Interface than a work flow management system. For work flow, you could build your own home-grown database driven solution, or you could use tools like Ultimus or Sharepoint.
You may also be thinking of the Windows Work Flow Foundation.
I have used both Ultimus and home-grown implementations for work flow management. Peers have used Sharepoint. There are benefits or pros/cons to each.
I am unsure how well Workflow works with ASP.NET as I've never tried it. I believe some of the samples may actually cover this so it's possible. That is the first technical hurdle.
It sounds like the logic isn't too complicated. There are a finite number of "paths" that a user can take based on the referral type. Each path is fairly linear, with 2-4 "groups" of questions. Can each group sit on a single page? That would simplify things greatly.
A web framework such as Spring.NET Web Framework might be better suited for this task than Workflow. You are trying to express some condition logic--essentially, "go to the next page if X, else end questioniare". Spring.NET handles this exact sort of logic with its Validation Framework and the Results Mapping.
Workflow is certainly well-suited for this kind of logic, but is there anything that happens in reasponse to each group of questions other than validation? If not, it may be overkill.