claire-agent
Version:
A Dialogflow agent for Claire Global
16 lines (14 loc) • 7.13 kB
JavaScript
// Compiled by ClojureScript 1.10.520 {:target :nodejs}
goog.provide('claire_agent.intents.purchase_taric');
goog.require('cljs.core');
goog.require('claire_common.utils');
goog.require('claire_common.dialogflow');
claire_agent.intents.purchase_taric.purchase_taric_no_taric = (function claire_agent$intents$purchase_taric$purchase_taric_no_taric(intent,query,env,pars){
return claire_common.utils.make_reply.call(null,claire_common.utils.make_env.call(null,cljs.core.PersistentArrayMap.EMPTY,new cljs.core.Keyword(null,"merge?","merge?",-2004416151),false),new cljs.core.Keyword(null,"say","say",504378016),"Do you know the Taric code?");
});
claire_agent.intents.purchase_taric.purchase_taric_confirmation = (function claire_agent$intents$purchase_taric$purchase_taric_confirmation(intent,query,env,pars){
var env__$1 = claire_common.utils.make_env.call(null,env,new cljs.core.Keyword(null,"context","context",-830191113),cljs.core.PersistentVector.EMPTY,new cljs.core.Keyword(null,"merge?","merge?",-2004416151),false);
return claire_common.utils.make_reply.call(null,env__$1,new cljs.core.Keyword(null,"say","say",504378016),"Confirm Taric code",new cljs.core.Keyword(null,"state","state",-1988618099),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"found","found",-584700170),false], null));
});
claire_agent.intents.purchase_taric.intent = claire_common.dialogflow.intent.call(null,"purchase-taric-no-taric",new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["I would like to place an order"], null),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Sure. Do you know the Taric code of the product?"], null),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"followups","followups",2057499244),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [claire_common.dialogflow.intent.call(null,"purchase-taric-no-taric-purchase-ask-for-taric",cljs.core.PersistentVector.fromArray(["yes","sure","okay","sounds correct","that works","yep that's ok","yes that's right","I think so","yes I agree","I don't mind","I agree","yes I do","for sure","ok","yes that's ok","that one works","yes you can do it","perfect","why not","of course","okay I will","exactly","sure why not","absolutely","it's okay","it's fine","go ahead","confirm","sounds good","alright","yeah","yup","yes please","do it","yes I can","it looks perfect","that's correct","right","alright why not"], true),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Can you please say the Taric code or enter it manually?"], null),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"events","events",1792552201),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["purchase-ask-for-taric"], null),new cljs.core.Keyword(null,"followups","followups",2057499244),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [claire_common.dialogflow.intent.call(null,"purchase-ask-for-taric-purchase-taric-confirmation",cljs.core.PersistentVector.EMPTY,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Is Taric code correct?"], null),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"followups","followups",2057499244),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [claire_common.dialogflow.intent.call(null,"purchase-taric-confirmation-purchase-lookup-redirect",cljs.core.PersistentVector.fromArray(["yes","sure","okay","sounds correct","that works","yep that's ok","yes that's right","I think so","yes I agree","I don't mind","I agree","yes I do","for sure","ok","yes that's ok","that one works","yes you can do it","perfect","why not","of course","okay I will","exactly","sure why not","absolutely","it's okay","it's fine","go ahead","confirm","sounds good","alright","yeah","yup","yes please","do it","yes I can","it looks perfect","that's correct","right","alright why not"], true),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Should have been redirected"], null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"webhook","webhook",-860093016),claire_common.dialogflow.redirector.call(null,"purchase-lookup",null)], null)),claire_common.dialogflow.intent.call(null,"purchase-taric-confirmation-purchase-ask-for-taric-redirect",cljs.core.PersistentVector.fromArray(["don't","nope not really","no that's be all","not right now","thanks but no","not","no we are good","nothing else","not interested","nah I'm good","definitely not","no never","never","nah","nothing","no maybe next time","I don't want that","no not really","no that's ok","no no don't","na","no way no","I can't","no thanks","not at all","not really","I don't","no I cannot","no that's okay","nope","I don't think so","no it isn't","thanks but not this time","no that's fine thank you","no don't","don't do it","I don't want","not today","I'm not","no way","no","I disagree","not this time","nothing else thanks"], true),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Should have been redirected"], null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"webhook","webhook",-860093016),claire_common.dialogflow.redirector.call(null,"purchase-ask-for-taric",new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["purchase-taric-no-taric-followup"], null))], null))], null),new cljs.core.Keyword(null,"webhook","webhook",-860093016),claire_agent.intents.purchase_taric.purchase_taric_confirmation], null))], null)], null)),claire_common.dialogflow.intent.call(null,"purchase-taric-no-taric-purchase-product-redirect",cljs.core.concat.call(null,cljs.core.PersistentVector.fromArray(["don't","nope not really","no that's be all","not right now","thanks but no","not","no we are good","nothing else","not interested","nah I'm good","definitely not","no never","never","nah","nothing","no maybe next time","I don't want that","no not really","no that's ok","no no don't","na","no way no","I can't","no thanks","not at all","not really","I don't","no I cannot","no that's okay","nope","I don't think so","no it isn't","thanks but not this time","no that's fine thank you","no don't","don't do it","I don't want","not today","I'm not","no way","no","I disagree","not this time","nothing else thanks"], true),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["I don't know the Taric code"], null)),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Should have been redirected"], null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"webhook","webhook",-860093016),claire_common.dialogflow.redirector.call(null,"purchase-product",null)], null))], null),new cljs.core.Keyword(null,"webhook","webhook",-860093016),claire_agent.intents.purchase_taric.purchase_taric_no_taric], null));
//# sourceMappingURL=purchase_taric.js.map?rel=1571758970012