Advertisement
Guest User

Untitled

a guest
Apr 24th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.22 KB | None | 0 0
  1. {
  2. "_id" : "0-fallback",
  3. "fallback":true,
  4. "stateIn" : "",
  5. "stateOut" : "",
  6. "triggers" : [],
  7. "responses" : [
  8. {
  9. "type" : "SIMPLE",
  10. "data" : {
  11. "en" : {
  12. "text" : "I don't undestand..."
  13. }
  14. }
  15. },
  16. {
  17. "type" : "SIMPLE",
  18. "data" : {
  19. "en" : {
  20. "text" : "How can I help you?"
  21. }
  22. }
  23. },
  24. {
  25. "type" : "BUTTONS",
  26. "data" : [
  27. {
  28. "key" : "new-user",
  29. "value" : {
  30. "en" : "New user"
  31. }
  32. },
  33. {
  34. "key" : "guide-me",
  35. "value" : {
  36. "en" : "Guide me"
  37. }
  38. },
  39. {
  40. "key" : "help-me",
  41. "value" : {
  42. "en" : "Help me"
  43. }
  44. }
  45. ]
  46. }
  47. ]
  48. }
  49.  
  50. {
  51. "_id" : "intro",
  52. "stateIn" : "",
  53. "stateOut" : "selectAction",
  54. "triggers" : [
  55. {
  56. "evaluator" : "event",
  57. "event" : "INTRO"
  58. }
  59. ],
  60. "responses" : [],
  61.  
  62. "hook": {
  63. "class":"App\\Hooks\\RayHook",
  64. "function":"intro"
  65. }
  66. }
  67.  
  68. {
  69. "_id" : "newUser-fallback",
  70. "fallback" : true,
  71. "stateIn" : "selectAction",
  72. "stateOut" : "newUser",
  73. "triggers" : [],
  74. "responses" : [
  75. {
  76. "type" : "SIMPLE",
  77. "data" : {
  78. "en" : {
  79. "text" : "I don't understand..."
  80. }
  81. }
  82. },
  83. {
  84. "type" : "SIMPLE",
  85. "data" : {
  86. "en" : {
  87. "text" : "Which is the role of the user you want to add?"
  88. }
  89. }
  90. },
  91. {
  92. "type" : "BUTTONS",
  93. "data" : [
  94. {
  95. "key" : "sales-associate",
  96. "value" : {
  97. "en" : "Sales Associate"
  98. }
  99. },
  100. {
  101. "key" : "assistant-store-manager",
  102. "value" : {
  103. "en" : "Assistant Store Manager"
  104. }
  105. }
  106. ]
  107. }
  108. ]
  109. }
  110.  
  111. {
  112. "_id" : "new-user",
  113. "stateIn" : "selectAction",
  114. "stateOut" : "newUser",
  115. "triggers" : [
  116. {
  117. "evaluator" : "regexp",
  118. "regexp" : "/New user/"
  119. }
  120. ],
  121. "responses" : [
  122. {
  123. "type" : "SIMPLE",
  124. "data" : {
  125. "en" : {
  126. "text" : "Fine, let's create a new user! Remember that the user will be tied up to your store number $storeNumber."
  127. }
  128. }
  129. },
  130. {
  131. "type" : "SIMPLE",
  132. "data" : {
  133. "en" : {
  134. "text" : "Which is the role of the user you want to add?"
  135. }
  136. }
  137. },
  138. {
  139. "type" : "BUTTONS",
  140. "data" : [
  141. {
  142. "key" : "sales-associate",
  143. "value" : {
  144. "en" : "Sales Associate"
  145. }
  146. },
  147. {
  148. "key" : "assistant-store-manager",
  149. "value" : {
  150. "en" : "Assistant Store Manager"
  151. }
  152. }
  153. ]
  154. }
  155. ]
  156. }
  157.  
  158. {
  159. "_id" : "sales-associate",
  160. "stateIn" : "newUser",
  161. "stateOut" : "salesAssociate",
  162. "triggers" : [{
  163. "evaluator" : "regexp",
  164. "regexp" : "/Sales Associate/"
  165. }],
  166. "responses" : [
  167. {
  168. "type" : "SIMPLE",
  169. "data" : {
  170. "en" : {
  171. "text" : "Which is the name of the user you want to create?"
  172. }
  173. }
  174. }
  175. ]
  176. }
  177.  
  178. {
  179. "_id" : "name",
  180. "stateIn" : "salesAssociate",
  181. "stateOut" : "name",
  182. "triggers" : [],
  183. "responses" : [
  184. {
  185. "type" : "SIMPLE",
  186. "data" : {
  187. "en" : {
  188. "text" : "And the surname?"
  189. }
  190. }
  191. }
  192. ],
  193. "hook": {
  194. "class":"App\\Hooks\\RayHook",
  195. "function":"name"
  196. }
  197. }
  198.  
  199. {
  200. "_id" : "surname",
  201. "stateIn" : "name",
  202. "stateOut" : "surname",
  203. "triggers" : [],
  204. "responses" : [
  205. {
  206. "type" : "SIMPLE",
  207. "data" : {
  208. "en" : {
  209. "text" : "Fine, now tell me the e-mail address of the user, please 😊"
  210. }
  211. }
  212. }
  213. ],
  214. "hook": {
  215. "class":"App\\Hooks\\RayHook",
  216. "function":"surname"
  217. }
  218. }
  219.  
  220. {
  221. "_id" : "email",
  222. "stateIn" : "surname",
  223. "stateOut" : "email",
  224. "triggers" : [],
  225. "responses" : [],
  226. "hook": {
  227. "class":"App\\Hooks\\RayHook",
  228. "function":"validateEmail"
  229. }
  230. }
  231.  
  232. {
  233. "_id" : "sacode-yes",
  234. "stateIn" : "email",
  235. "stateOut" : "sacode",
  236. "triggers" : [{
  237. "evaluator" : "regexp",
  238. "regexp" : "/Sure!/"
  239. }],
  240. "responses" : [
  241. {
  242. "type" : "SIMPLE",
  243. "data" : {
  244. "en" : {
  245. "text" : "Good, tell it to me 😊"
  246. }
  247. }
  248. }
  249. ]
  250. }
  251.  
  252. {
  253. "_id" : "created",
  254. "stateIn" : "sacode",
  255. "stateOut" : "",
  256. "triggers" : [],
  257. "responses" : [
  258. {
  259. "type" : "SIMPLE",
  260. "data" : {
  261. "en" : {
  262. "text" : "Here we are, I've created the new User! Your SA will be notified by e-mail."
  263. }
  264. }
  265. },
  266. {
  267. "type" : "SIMPLE",
  268. "data" : {
  269. "en" : {
  270. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊."
  271. }
  272. }
  273. },
  274. {
  275. "type" : "BUTTONS",
  276. "data" : [
  277. {
  278. "key" : "new-user",
  279. "value" : {
  280. "en" : "New user"
  281. }
  282. },
  283. {
  284. "key" : "guide-me",
  285. "value" : {
  286. "en" : "Guide me"
  287. }
  288. },
  289. {
  290. "key" : "help-me",
  291. "value" : {
  292. "en" : "Help me"
  293. }
  294. }
  295. ]
  296. }
  297. ],
  298. "hook": {
  299. "class":"App\\Hooks\\RayHook",
  300. "function":"saCode"
  301. }
  302. }
  303.  
  304. {
  305. "_id" : "sa-code-info",
  306. "stateIn" : "email",
  307. "stateOut" : "saCodeInfo",
  308. "triggers" : [{
  309. "evaluator" : "regexp",
  310. "regexp" : "/I don't know where to find it/"
  311. }],
  312. "responses" : [
  313. {
  314. "type" : "SIMPLE",
  315. "data" : {
  316. "en" : {
  317. "text" : "You can find your SA code in your last transaction ticket 😊"
  318. }
  319. }
  320. },
  321. {
  322. "type" : "SIMPLE",
  323. "data" : {
  324. "en" : {
  325. "text" : "Here's an example photo."
  326. }
  327. }
  328. },
  329. {
  330. "type" : "IMAGE",
  331. "data" : {
  332. "type" : "IMAGE",
  333. "data" : "http://www.example.it/image.png"
  334. }
  335. },
  336. {
  337. "type" : "SIMPLE",
  338. "data" : {
  339. "en" : {
  340. "text" : "Did you find it?"
  341. }
  342. }
  343. },
  344. {
  345. "type" : "BUTTONS",
  346. "data" : [
  347. {
  348. "key" : "btn-yep",
  349. "value" : {
  350. "en" : "Yep!"
  351. }
  352. },
  353. {
  354. "key" : "btn-nope",
  355. "value" : {
  356. "en" : "Nope"
  357. }
  358. }
  359. ]
  360. }
  361. ]
  362. }
  363.  
  364. {
  365. "_id" : "tell-sa-code",
  366. "stateIn" : "saCodeInfo",
  367. "stateOut" : "created",
  368. "triggers" : [{
  369. "evaluator" : "regexp",
  370. "regexp" : "/Yep!/"
  371. }],
  372. "responses" : [
  373. {
  374. "type" : "SIMPLE",
  375. "data" : {
  376. "en" : {
  377. "text" : "Good,tell it to me 😊"
  378. }
  379. }
  380. }
  381. ]
  382. }
  383.  
  384. {
  385. "_id" : "support-sa-code",
  386. "stateIn" : "saCodeInfo",
  387. "stateOut" : "",
  388. "triggers" : [{
  389. "evaluator" : "regexp",
  390. "regexp" : "/Nope/"
  391. }],
  392. "responses" : [
  393. {
  394. "type" : "SIMPLE",
  395. "data" : {
  396. "en" : {
  397. "text" : "Don't worry, I'll send an e-mail to the Sake Team who will contact you as soon as possible!"
  398. }
  399. }
  400. },
  401. {
  402. "type" : "SIMPLE",
  403. "data" : {
  404. "en" : {
  405. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊"
  406. }
  407. }
  408. },
  409. {
  410. "type" : "BUTTONS",
  411. "data" : [
  412. {
  413. "key" : "new-user",
  414. "value" : {
  415. "en" : "New user"
  416. }
  417. },
  418. {
  419. "key" : "guide-me",
  420. "value" : {
  421. "en" : "Guide me"
  422. }
  423. },
  424. {
  425. "key" : "help-me",
  426. "value" : {
  427. "en" : "Help me"
  428. }
  429. }
  430. ]
  431. }
  432. ],
  433. "hook": {
  434. "class":"App\\Hooks\\RayHook",
  435. "function":"sendEmail"
  436. }
  437. }
  438.  
  439. {
  440. "_id" : "retry",
  441. "stateIn" : "email",
  442. "stateOut" : "email",
  443. "triggers" : [{
  444. "evaluator" : "regexp",
  445. "regexp" : "/Retry/"
  446. }],
  447. "responses" : [
  448. {
  449. "type" : "SIMPLE",
  450. "data" : {
  451. "en" : {
  452. "text" : "Fine, tell me the e-mail address 😊"
  453. }
  454. }
  455. }
  456. ]
  457. }
  458.  
  459. {
  460. "_id" : "cancel",
  461. "stateIn" : "email",
  462. "stateOut" : "",
  463. "triggers" : [{
  464. "evaluator" : "regexp",
  465. "regexp" : "/Cancel/"
  466. }],
  467. "responses" : [
  468. {
  469. "type" : "SIMPLE",
  470. "data" : {
  471. "en" : {
  472. "text" : "Ok! I'm always at your disposal in creating new users, keep you up to date and help you 😊"
  473. }
  474. }
  475. },
  476. {
  477. "type" : "BUTTONS",
  478. "data" : [
  479. {
  480. "key" : "new-user",
  481. "value" : {
  482. "en" : "New user"
  483. }
  484. },
  485. {
  486. "key" : "guide-me",
  487. "value" : {
  488. "en" : "Guide me"
  489. }
  490. },
  491. {
  492. "key" : "help-me",
  493. "value" : {
  494. "en" : "Help me"
  495. }
  496. }
  497. ]
  498. }
  499. ]
  500. }
  501.  
  502. {
  503. "_id" : "assistant-store-manager",
  504. "stateIn" : "newUser",
  505. "stateOut" : "assistantStoreManager",
  506. "triggers" : [{
  507. "evaluator" : "regexp",
  508. "regexp" : "/Assistant Store Manager/"
  509. }],
  510. "responses" : [
  511. {
  512. "type" : "SIMPLE",
  513. "data" : {
  514. "en" : {
  515. "text" : "Which is the name of the user you want to create?"
  516. }
  517. }
  518. }
  519. ]
  520. }
  521.  
  522. {
  523. "_id" : "asm-name",
  524. "stateIn" : "asmAssistantStoreManager",
  525. "stateOut" : "asmName",
  526. "triggers" : [],
  527. "responses" : [
  528. {
  529. "type" : "SIMPLE",
  530. "data" : {
  531. "en" : {
  532. "text" : "And the surname?"
  533. }
  534. }
  535. }
  536. ],
  537. "hook": {
  538. "class":"App\\Hooks\\RayHook",
  539. "function":"name"
  540. }
  541. }
  542.  
  543. {
  544. "_id" : "asm-surname",
  545. "stateIn" : "asmName",
  546. "stateOut" : "asmSurname",
  547. "triggers" : [],
  548. "responses" : [
  549. {
  550. "type" : "SIMPLE",
  551. "data" : {
  552. "en" : {
  553. "text" : "Fine, now tell me the e-mail address of the user, please 😊"
  554. }
  555. }
  556. }
  557. ],
  558. "hook": {
  559. "class":"App\\Hooks\\RayHook",
  560. "function":"surname"
  561. }
  562. }
  563.  
  564. {
  565. "_id" : "asm-email",
  566. "stateIn" : "asmSurname",
  567. "stateOut" : "asmEmail",
  568. "triggers" : [],
  569. "responses" : [],
  570. "hook": {
  571. "class":"App\\Hooks\\RayHook",
  572. "function":"validateEmail"
  573. }
  574. }
  575.  
  576. {
  577. "_id" : "asm-sacode-yes",
  578. "stateIn" : "asmEmail",
  579. "stateOut" : "asmSacode",
  580. "triggers" : [{
  581. "evaluator" : "regexp",
  582. "regexp" : "/Sure!/"
  583. }],
  584. "responses" : [
  585. {
  586. "type" : "SIMPLE",
  587. "data" : {
  588. "en" : {
  589. "text" : "Good, tell it to me 😊"
  590. }
  591. }
  592. }
  593. ]
  594. }
  595.  
  596. {
  597. "_id" : "asm-created",
  598. "stateIn" : "asmSacode",
  599. "stateOut" : "",
  600. "triggers" : [],
  601. "responses" : [
  602. {
  603. "type" : "SIMPLE",
  604. "data" : {
  605. "en" : {
  606. "text" : "Here we are, I've created the new User! Your ASM will be notified by e-mail."
  607. }
  608. }
  609. },
  610. {
  611. "type" : "SIMPLE",
  612. "data" : {
  613. "en" : {
  614. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊."
  615. }
  616. }
  617. },
  618. {
  619. "type" : "BUTTONS",
  620. "data" : [
  621. {
  622. "key" : "new-user",
  623. "value" : {
  624. "en" : "New user"
  625. }
  626. },
  627. {
  628. "key" : "guide-me",
  629. "value" : {
  630. "en" : "Guide me"
  631. }
  632. },
  633. {
  634. "key" : "help-me",
  635. "value" : {
  636. "en" : "Help me"
  637. }
  638. }
  639. ]
  640. }
  641. ],
  642. "hook": {
  643. "class":"App\\Hooks\\RayHook",
  644. "function":"saCode"
  645. }
  646. }
  647.  
  648. {
  649. "_id" : "asm-sa-code-info",
  650. "stateIn" : "asmEmail",
  651. "stateOut" : "asmSaCodeInfo",
  652. "triggers" : [{
  653. "evaluator" : "regexp",
  654. "regexp" : "/I don't know where to find it/"
  655. }],
  656. "responses" : [
  657. {
  658. "type" : "SIMPLE",
  659. "data" : {
  660. "en" : {
  661. "text" : "You can find your SA code in your last transaction ticket 😊"
  662. }
  663. }
  664. },
  665. {
  666. "type" : "SIMPLE",
  667. "data" : {
  668. "en" : {
  669. "text" : "Here's an example photo."
  670. }
  671. }
  672. },
  673. {
  674. "type" : "IMAGE",
  675. "data" : {
  676. "type" : "IMAGE",
  677. "data" : "http://www.example.it/image.png"
  678. }
  679. },
  680. {
  681. "type" : "SIMPLE",
  682. "data" : {
  683. "en" : {
  684. "text" : "Did you find it?"
  685. }
  686. }
  687. },
  688. {
  689. "type" : "BUTTONS",
  690. "data" : [
  691. {
  692. "key" : "btn-yep",
  693. "value" : {
  694. "en" : "Yep!"
  695. }
  696. },
  697. {
  698. "key" : "btn-nope",
  699. "value" : {
  700. "en" : "Nope"
  701. }
  702. }
  703. ]
  704. }
  705. ]
  706. }
  707.  
  708. {
  709. "_id" : "asm-tell-sa-code",
  710. "stateIn" : "asmSaCodeInfo",
  711. "stateOut" : "asmCreated",
  712. "triggers" : [{
  713. "evaluator" : "regexp",
  714. "regexp" : "/Yep!/"
  715. }],
  716. "responses" : [
  717. {
  718. "type" : "SIMPLE",
  719. "data" : {
  720. "en" : {
  721. "text" : "Good,tell it to me 😊"
  722. }
  723. }
  724. }
  725. ]
  726. }
  727.  
  728. {
  729. "_id" : "asm-support-sa-code",
  730. "stateIn" : "asmSaCodeInfo",
  731. "stateOut" : "",
  732. "triggers" : [{
  733. "evaluator" : "regexp",
  734. "regexp" : "/Nope/"
  735. }],
  736. "responses" : [
  737. {
  738. "type" : "SIMPLE",
  739. "data" : {
  740. "en" : {
  741. "text" : "Don't worry, I'll send an e-mail to the Sake Team who will contact you as soon as possible!"
  742. }
  743. }
  744. },
  745. {
  746. "type" : "SIMPLE",
  747. "data" : {
  748. "en" : {
  749. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊"
  750. }
  751. }
  752. },
  753. {
  754. "type" : "BUTTONS",
  755. "data" : [
  756. {
  757. "key" : "new-user",
  758. "value" : {
  759. "en" : "New user"
  760. }
  761. },
  762. {
  763. "key" : "guide-me",
  764. "value" : {
  765. "en" : "Guide me"
  766. }
  767. },
  768. {
  769. "key" : "help-me",
  770. "value" : {
  771. "en" : "Help me"
  772. }
  773. }
  774. ]
  775. }
  776. ],
  777. "hook": {
  778. "class":"App\\Hooks\\RayHook",
  779. "function":"sendEmail"
  780. }
  781. }
  782.  
  783. {
  784. "_id" : "asm-retry",
  785. "stateIn" : "asmEmail",
  786. "stateOut" : "asmEmail",
  787. "triggers" : [{
  788. "evaluator" : "regexp",
  789. "regexp" : "/Retry/"
  790. }],
  791. "responses" : [
  792. {
  793. "type" : "SIMPLE",
  794. "data" : {
  795. "en" : {
  796. "text" : "Fine, tell me the e-mail address 😊"
  797. }
  798. }
  799. }
  800. ]
  801. }
  802.  
  803. {
  804. "_id" : "asm-cancel",
  805. "stateIn" : "asmEmail",
  806. "stateOut" : "",
  807. "triggers" : [{
  808. "evaluator" : "regexp",
  809. "regexp" : "/Cancel/"
  810. }],
  811. "responses" : [
  812. {
  813. "type" : "SIMPLE",
  814. "data" : {
  815. "en" : {
  816. "text" : "Ok! I'm always at your disposal in creating new users, keep you up to date and help you 😊"
  817. }
  818. }
  819. },
  820. {
  821. "type" : "BUTTONS",
  822. "data" : [
  823. {
  824. "key" : "new-user",
  825. "value" : {
  826. "en" : "New user"
  827. }
  828. },
  829. {
  830. "key" : "guide-me",
  831. "value" : {
  832. "en" : "Guide me"
  833. }
  834. },
  835. {
  836. "key" : "help-me",
  837. "value" : {
  838. "en" : "Help me"
  839. }
  840. }
  841. ]
  842. }
  843. ]
  844. }
  845.  
  846. {
  847. "_id" : "guide-me",
  848. "stateIn" : "selectAction",
  849. "stateOut" : "guideMe",
  850. "triggers" : [
  851. {
  852. "evaluator" : "regexp",
  853. "regexp" : "/Guide me/"
  854. }
  855. ],
  856. "responses" : [
  857. {
  858. "type" : "SIMPLE",
  859. "data" : {
  860. "en" : {
  861. "text" : "LUCE is Kering clienteling application, entirely dedicated to Sales Associates and Store Managers and its purpose is to support store teams in all the activities related to customer management 😊"
  862. }
  863. }
  864. },
  865. {
  866. "type" : "SIMPLE",
  867. "data" : {
  868. "en" : {
  869. "text" : "This App is divided in five sections, choose the one you are interested in!"
  870. }
  871. }
  872. },
  873. {
  874. "type" : "BUTTONS",
  875. "data" : [
  876. {
  877. "key" : "my-day",
  878. "value" : {
  879. "en" : "MyDay"
  880. }
  881. },
  882. {
  883. "key" : "clients",
  884. "value" : {
  885. "en" : "Clients"
  886. }
  887. },
  888. {
  889. "key" : "catalog",
  890. "value" : {
  891. "en" : "Catalog"
  892. }
  893. },
  894. {
  895. "key" : "feed",
  896. "value" : {
  897. "en" : "Feed"
  898. }
  899. },
  900. {
  901. "key" : "profile",
  902. "value" : {
  903. "en" : "Profile"
  904. }
  905. }
  906. ]
  907. }
  908. ]
  909. }
  910.  
  911. {
  912. "_id" : "my-day",
  913. "stateIn" : "guideMe",
  914. "stateOut" : "myDay",
  915. "triggers" : [
  916. {
  917. "evaluator" : "regexp",
  918. "regexp" : "/MyDay/"
  919. }
  920. ],
  921. "responses" : [
  922. {
  923. "type" : "SIMPLE",
  924. "data" : {
  925. "en" : {
  926. "text" : "MyDay allows you to have a quick overview of your activities. You can manage your tasks and appointments and have an immediate summary of the overdue ones."
  927. }
  928. }
  929. },
  930. {
  931. "type" : "SIMPLE",
  932. "data" : {
  933. "en" : {
  934. "text" : " Wanna discover more?"
  935. }
  936. }
  937. },
  938. {
  939. "type" : "BUTTONS",
  940. "data" : [
  941. {
  942. "key" : "tasks",
  943. "value" : {
  944. "en" : "Tasks"
  945. }
  946. },
  947. {
  948. "key" : "appointments",
  949. "value" : {
  950. "en" : "Appointments"
  951. }
  952. },
  953. {
  954. "key" : "no",
  955. "value" : {
  956. "en" : "No thanks"
  957. }
  958. }
  959. ]
  960. }
  961. ]
  962. }
  963.  
  964. {
  965. "_id" : "tasks",
  966. "stateIn" : "myDay",
  967. "stateOut" : "tasks",
  968. "triggers" : [
  969. {
  970. "evaluator" : "regexp",
  971. "regexp" : "/Tasks/"
  972. }
  973. ],
  974. "responses" : [
  975. {
  976. "type" : "SIMPLE",
  977. "data" : {
  978. "en" : {
  979. "text" : "MyDay section opens on your tasks list, it shows the ones coming from your Store Manager, from the marketing team and the ones you personally created."
  980. }
  981. }
  982. },
  983. {
  984. "type" : "SIMPLE",
  985. "data" : {
  986. "en" : {
  987. "text" : "What are you interested in?"
  988. }
  989. }
  990. },
  991. {
  992. "type" : "BUTTONS",
  993. "data" : [
  994. {
  995. "key" : "taskCreation",
  996. "value" : {
  997. "en" : "Create a task"
  998. }
  999. },
  1000. {
  1001. "key" : "editTask",
  1002. "value" : {
  1003. "en" : "Edit a task"
  1004. }
  1005. },
  1006. {
  1007. "key" : "completeTask",
  1008. "value" : {
  1009. "en" : "Complete or archive a task "
  1010. }
  1011. }
  1012. ]
  1013. }
  1014. ]
  1015. }
  1016.  
  1017. {
  1018. "_id" : "task-creation",
  1019. "stateIn" : "tasks",
  1020. "stateOut" : "",
  1021. "triggers" : [
  1022. {
  1023. "evaluator" : "regexp",
  1024. "regexp" : "/Create a task/"
  1025. }
  1026. ],
  1027. "responses" : [
  1028. {
  1029. "type" : "SIMPLE",
  1030. "data" : {
  1031. "en" : {
  1032. "text" : "Check out this video!"
  1033. }
  1034. }
  1035. },
  1036. {
  1037. "type" : "VIDEO",
  1038. "data" : {
  1039. "type" : "VIDEO",
  1040. "data" : "http://www.example.it/video.mp4"
  1041. }
  1042. },
  1043. {
  1044. "type" : "SIMPLE",
  1045. "data" : {
  1046. "en" : {
  1047. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊"
  1048. }
  1049. }
  1050. },
  1051. {
  1052. "type" : "BUTTONS",
  1053. "data" : [
  1054. {
  1055. "key" : "new-user",
  1056. "value" : {
  1057. "en" : "New user"
  1058. }
  1059. },
  1060. {
  1061. "key" : "guide-me",
  1062. "value" : {
  1063. "en" : "Guide me"
  1064. }
  1065. },
  1066. {
  1067. "key" : "help-me",
  1068. "value" : {
  1069. "en" : "Help me"
  1070. }
  1071. }
  1072. ]
  1073. }
  1074. ]
  1075. }
  1076.  
  1077. {
  1078. "_id" : "edit-task",
  1079. "stateIn" : "tasks",
  1080. "stateOut" : "",
  1081. "triggers" : [
  1082. {
  1083. "evaluator" : "regexp",
  1084. "regexp" : "/Edit a Task/"
  1085. }
  1086. ],
  1087. "responses" : [
  1088. {
  1089. "type" : "SIMPLE",
  1090. "data" : {
  1091. "en" : {
  1092. "text" : "Check out this video!"
  1093. }
  1094. }
  1095. },
  1096. {
  1097. "type" : "VIDEO",
  1098. "data" : {
  1099. "type" : "VIDEO",
  1100. "data" : "http://www.example.it/video.mp4"
  1101. }
  1102. },
  1103. {
  1104. "type" : "SIMPLE",
  1105. "data" : {
  1106. "en" : {
  1107. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊"
  1108. }
  1109. }
  1110. },
  1111. {
  1112. "type" : "BUTTONS",
  1113. "data" : [
  1114. {
  1115. "key" : "new-user",
  1116. "value" : {
  1117. "en" : "New user"
  1118. }
  1119. },
  1120. {
  1121. "key" : "guide-me",
  1122. "value" : {
  1123. "en" : "Guide me"
  1124. }
  1125. },
  1126. {
  1127. "key" : "help-me",
  1128. "value" : {
  1129. "en" : "Help me"
  1130. }
  1131. }
  1132. ]
  1133. }
  1134. ]
  1135. }
  1136.  
  1137. {
  1138. "_id" : "complete-task",
  1139. "stateIn" : "tasks",
  1140. "stateOut" : "",
  1141. "triggers" : [
  1142. {
  1143. "evaluator" : "regexp",
  1144. "regexp" : "/Complete or archive a task/"
  1145. }
  1146. ],
  1147. "responses" : [
  1148. {
  1149. "type" : "SIMPLE",
  1150. "data" : {
  1151. "en" : {
  1152. "text" : "Check out this video!"
  1153. }
  1154. }
  1155. },
  1156. {
  1157. "type" : "VIDEO",
  1158. "data" : {
  1159. "type" : "VIDEO",
  1160. "data" : "http://www.example.it/video.mp4"
  1161. }
  1162. },
  1163. {
  1164. "type" : "SIMPLE",
  1165. "data" : {
  1166. "en" : {
  1167. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊"
  1168. }
  1169. }
  1170. },
  1171. {
  1172. "type" : "BUTTONS",
  1173. "data" : [
  1174. {
  1175. "key" : "new-user",
  1176. "value" : {
  1177. "en" : "New user"
  1178. }
  1179. },
  1180. {
  1181. "key" : "guide-me",
  1182. "value" : {
  1183. "en" : "Guide me"
  1184. }
  1185. },
  1186. {
  1187. "key" : "help-me",
  1188. "value" : {
  1189. "en" : "Help me"
  1190. }
  1191. }
  1192. ]
  1193. }
  1194. ]
  1195. }
  1196.  
  1197. {
  1198. "_id" : "appointments",
  1199. "stateIn" : "myDay",
  1200. "stateOut" : "",
  1201. "triggers" : [
  1202. {
  1203. "evaluator" : "regexp",
  1204. "regexp" : "/Appointments/"
  1205. }
  1206. ],
  1207. "responses" : [
  1208. {
  1209. "type" : "SIMPLE",
  1210. "data" : {
  1211. "en" : {
  1212. "text" : "The Appointments view, shows the list of events you create with your clients. You can also browse them switching to the calendar view and selecting the day you want to view."
  1213. }
  1214. }
  1215. },
  1216. {
  1217. "type" : "SIMPLE",
  1218. "data" : {
  1219. "en" : {
  1220. "text" : "Appointments are very similar to tasks. See how to create one watching this video!"
  1221. }
  1222. }
  1223. },
  1224. {
  1225. "type" : "VIDEO",
  1226. "data" : {
  1227. "type" : "VIDEO",
  1228. "data" : "http://www.example.it/video.mp4"
  1229. }
  1230. },
  1231. {
  1232. "type" : "SIMPLE",
  1233. "data" : {
  1234. "en" : {
  1235. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊"
  1236. }
  1237. }
  1238. },
  1239. {
  1240. "type" : "BUTTONS",
  1241. "data" : [
  1242. {
  1243. "key" : "new-user",
  1244. "value" : {
  1245. "en" : "New user"
  1246. }
  1247. },
  1248. {
  1249. "key" : "guide-me",
  1250. "value" : {
  1251. "en" : "Guide me"
  1252. }
  1253. },
  1254. {
  1255. "key" : "help-me",
  1256. "value" : {
  1257. "en" : "Help me"
  1258. }
  1259. }
  1260. ]
  1261. }
  1262. ]
  1263. }
  1264.  
  1265. {
  1266. "_id" : "no",
  1267. "stateIn" : "myDay",
  1268. "stateOut" : "",
  1269. "triggers" : [
  1270. {
  1271. "evaluator" : "regexp",
  1272. "regexp" : "/No thanks/"
  1273. }
  1274. ],
  1275. "responses" : [
  1276. {
  1277. "type" : "SIMPLE",
  1278. "data" : {
  1279. "en" : {
  1280. "text" : "Ok, I'm always at your disposal in creating new users, keep you up to date and help you 😊"
  1281. }
  1282. }
  1283. },
  1284. {
  1285. "type" : "BUTTONS",
  1286. "data" : [
  1287. {
  1288. "key" : "new-user",
  1289. "value" : {
  1290. "en" : "New user"
  1291. }
  1292. },
  1293. {
  1294. "key" : "guide-me",
  1295. "value" : {
  1296. "en" : "Guide me"
  1297. }
  1298. },
  1299. {
  1300. "key" : "help-me",
  1301. "value" : {
  1302. "en" : "Help me"
  1303. }
  1304. }
  1305. ]
  1306. }
  1307. ]
  1308. }
  1309. {
  1310. "_id" : "clients",
  1311. "stateIn" : "guideMe",
  1312. "stateOut" : "clients",
  1313. "triggers" : [
  1314. {
  1315. "evaluator" : "regexp",
  1316. "regexp" : "/Clients/"
  1317. }
  1318. ],
  1319. "responses" : [
  1320. {
  1321. "type" : "SIMPLE",
  1322. "data" : {
  1323. "en" : {
  1324. "text" : "Clients section provides an immediate access to a powerful search engine. It’s organized in: \"My clients\", the ones that chose you as preferred SA; \"Favorites\", your personalized list; \"All clients\", a worldwide customers directory."
  1325. }
  1326. }
  1327. },
  1328. {
  1329. "type" : "SIMPLE",
  1330. "data" : {
  1331. "en" : {
  1332. "text" : "Wanna discover more? Tap an option for more info!"
  1333. }
  1334. }
  1335. },
  1336. {
  1337. "type" : "BUTTONS",
  1338. "data" : [
  1339. {
  1340. "key" : "client-search",
  1341. "value" : {
  1342. "en" : "Client search"
  1343. }
  1344. },
  1345. {
  1346. "key" : "client-profile",
  1347. "value" : {
  1348. "en" : "Client profile"
  1349. }
  1350. },
  1351. {
  1352. "key" : "edit-client",
  1353. "value" : {
  1354. "en" : "Edit Client"
  1355. }
  1356.  
  1357. },
  1358. {
  1359. "key" : "no-client",
  1360. "value" : {
  1361. "en" : "No thanks"
  1362. }
  1363.  
  1364. }
  1365. ]
  1366. }
  1367. ]
  1368. }
  1369.  
  1370. {
  1371. "_id" : "client-search",
  1372. "stateIn" : "clients",
  1373. "stateOut" : "",
  1374. "triggers" : [
  1375. {
  1376. "evaluator" : "regexp",
  1377. "regexp" : "/Client search/"
  1378. }
  1379. ],
  1380. "responses" : [
  1381. {
  1382. "type" : "SIMPLE",
  1383. "data" : {
  1384. "en" : {
  1385. "text" : "Check out this video!"
  1386. }
  1387. }
  1388. },
  1389. {
  1390. "type" : "VIDEO",
  1391. "data" : {
  1392. "type" : "VIDEO",
  1393. "data" : "http://www.example.it/video.mp4"
  1394. }
  1395. },
  1396. {
  1397. "type" : "SIMPLE",
  1398. "data" : {
  1399. "en" : {
  1400. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊"
  1401. }
  1402. }
  1403. },
  1404. {
  1405. "type" : "BUTTONS",
  1406. "data" : [
  1407. {
  1408. "key" : "new-user",
  1409. "value" : {
  1410. "en" : "New user"
  1411. }
  1412. },
  1413. {
  1414. "key" : "guide-me",
  1415. "value" : {
  1416. "en" : "Guide me"
  1417. }
  1418. },
  1419. {
  1420. "key" : "help-me",
  1421. "value" : {
  1422. "en" : "Help me"
  1423. }
  1424. }
  1425. ]
  1426. }
  1427. ]
  1428. }
  1429.  
  1430. {
  1431. "_id" : "client-profile",
  1432. "stateIn" : "clients",
  1433. "stateOut" : "",
  1434. "triggers" : [
  1435. {
  1436. "evaluator" : "regexp",
  1437. "regexp" : "/Client profile/"
  1438. }
  1439. ],
  1440. "responses" : [
  1441. {
  1442. "type" : "SIMPLE",
  1443. "data" : {
  1444. "en" : {
  1445. "text" : "Check out this video!"
  1446. }
  1447. }
  1448. },
  1449. {
  1450. "type" : "VIDEO",
  1451. "data" : {
  1452. "type" : "VIDEO",
  1453. "data" : "http://www.example.it/video.mp4"
  1454. }
  1455. },
  1456. {
  1457. "type" : "SIMPLE",
  1458. "data" : {
  1459. "en" : {
  1460. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊"
  1461. }
  1462. }
  1463. },
  1464. {
  1465. "type" : "BUTTONS",
  1466. "data" : [
  1467. {
  1468. "key" : "new-user",
  1469. "value" : {
  1470. "en" : "New user"
  1471. }
  1472. },
  1473. {
  1474. "key" : "guide-me",
  1475. "value" : {
  1476. "en" : "Guide me"
  1477. }
  1478. },
  1479. {
  1480. "key" : "help-me",
  1481. "value" : {
  1482. "en" : "Help me"
  1483. }
  1484. }
  1485. ]
  1486. }
  1487. ]
  1488. }
  1489.  
  1490. {
  1491. "_id" : "edit-client",
  1492. "stateIn" : "clients",
  1493. "stateOut" : "",
  1494. "triggers" : [
  1495. {
  1496. "evaluator" : "regexp",
  1497. "regexp" : "/Edit client/"
  1498. }
  1499. ],
  1500. "responses" : [
  1501. {
  1502. "type" : "SIMPLE",
  1503. "data" : {
  1504. "en" : {
  1505. "text" : "Check out this video!"
  1506. }
  1507. }
  1508. },
  1509. {
  1510. "type" : "VIDEO",
  1511. "data" : {
  1512. "type" : "VIDEO",
  1513. "data" : "http://www.example.it/video.mp4"
  1514. }
  1515. },
  1516. {
  1517. "type" : "SIMPLE",
  1518. "data" : {
  1519. "en" : {
  1520. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊"
  1521. }
  1522. }
  1523. },
  1524. {
  1525. "type" : "BUTTONS",
  1526. "data" : [
  1527. {
  1528. "key" : "new-user",
  1529. "value" : {
  1530. "en" : "New user"
  1531. }
  1532. },
  1533. {
  1534. "key" : "guide-me",
  1535. "value" : {
  1536. "en" : "Guide me"
  1537. }
  1538. },
  1539. {
  1540. "key" : "help-me",
  1541. "value" : {
  1542. "en" : "Help me"
  1543. }
  1544. }
  1545. ]
  1546. }
  1547. ]
  1548. }
  1549.  
  1550. {
  1551. "_id" : "no-clients",
  1552. "stateIn" : "clients",
  1553. "stateOut" : "",
  1554. "triggers" : [
  1555. {
  1556. "evaluator" : "regexp",
  1557. "regexp" : "/No thanks/"
  1558. }
  1559. ],
  1560. "responses" : [
  1561. {
  1562. "type" : "SIMPLE",
  1563. "data" : {
  1564. "en" : {
  1565. "text" : "Ok, I'm always at your disposal in creating new users, keep you up to date and help you 😊"
  1566. }
  1567. }
  1568. },
  1569. {
  1570. "type" : "BUTTONS",
  1571. "data" : [
  1572. {
  1573. "key" : "new-user",
  1574. "value" : {
  1575. "en" : "New user"
  1576. }
  1577. },
  1578. {
  1579. "key" : "guide-me",
  1580. "value" : {
  1581. "en" : "Guide me"
  1582. }
  1583. },
  1584. {
  1585. "key" : "help-me",
  1586. "value" : {
  1587. "en" : "Help me"
  1588. }
  1589. }
  1590. ]
  1591. }
  1592. ]
  1593. }
  1594.  
  1595. {
  1596. "_id" : "catalog",
  1597. "stateIn" : "guideMe",
  1598. "stateOut" : "catalog",
  1599. "triggers" : [
  1600. {
  1601. "evaluator" : "regexp",
  1602. "regexp" : "/Catalog/"
  1603. }
  1604. ],
  1605. "responses" : [
  1606. {
  1607. "type" : "SIMPLE",
  1608. "data" : {
  1609. "en" : {
  1610. "text" : "Here you can find the entire catalog of your Brand and check the product availability."
  1611. }
  1612. }
  1613. },
  1614. {
  1615. "type" : "SIMPLE",
  1616. "data" : {
  1617. "en" : {
  1618. "text" : "With LUCE it’s easy to make a transfer request for a product that’s out of stock in your store, or just show to your clients where else they can find it."
  1619. }
  1620. }
  1621. },
  1622. {
  1623. "type" : "SIMPLE",
  1624. "data" : {
  1625. "en" : {
  1626. "text" : "Select an option to find out more!"
  1627. }
  1628. }
  1629. },
  1630. {
  1631. "type" : "BUTTONS",
  1632. "data" : [
  1633. {
  1634. "key" : "product-search",
  1635. "value" : {
  1636. "en" : "Product search"
  1637. }
  1638. },
  1639. {
  1640. "key" : "product-detail",
  1641. "value" : {
  1642. "en" : "Product detail"
  1643. }
  1644. },
  1645. {
  1646. "key" : "transfer-request",
  1647. "value" : {
  1648. "en" : "Transfer request"
  1649. }
  1650. },
  1651. {
  1652. "key" : "no-catalog",
  1653. "value" : {
  1654. "en" : "No thanks"
  1655. }
  1656. }
  1657. ]
  1658. }
  1659. ]
  1660. }
  1661.  
  1662. {
  1663. "_id" : "product-search",
  1664. "stateIn" : "catalog",
  1665. "stateOut" : "",
  1666. "triggers" : [
  1667. {
  1668. "evaluator" : "regexp",
  1669. "regexp" : "/Product search/"
  1670. }
  1671. ],
  1672. "responses" : [
  1673. {
  1674. "type" : "SIMPLE",
  1675. "data" : {
  1676. "en" : {
  1677. "text" : "You can search products by keyword, style color, or SKU."
  1678. }
  1679. }
  1680. },
  1681. {
  1682. "type" : "VIDEO",
  1683. "data" : {
  1684. "type" : "VIDEO",
  1685. "data" : "http://www.example.it/video.mp4"
  1686. }
  1687. },
  1688. {
  1689. "type" : "SIMPLE",
  1690. "data" : {
  1691. "en" : {
  1692. "text" : "You can also directly scan a barcode or even a picture, if this one has been tagged with product info."
  1693. }
  1694. }
  1695. },
  1696. {
  1697. "type" : "VIDEO",
  1698. "data" : {
  1699. "type" : "VIDEO",
  1700. "data" : "http://www.example.it/video.mp4"
  1701. }
  1702. },
  1703. {
  1704. "type" : "SIMPLE",
  1705. "data" : {
  1706. "en" : {
  1707. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊"
  1708. }
  1709. }
  1710. },
  1711. {
  1712. "type" : "BUTTONS",
  1713. "data" : [
  1714. {
  1715. "key" : "new-user",
  1716. "value" : {
  1717. "en" : "New user"
  1718. }
  1719. },
  1720. {
  1721. "key" : "guide-me",
  1722. "value" : {
  1723. "en" : "Guide me"
  1724. }
  1725. },
  1726. {
  1727. "key" : "help-me",
  1728. "value" : {
  1729. "en" : "Help me"
  1730. }
  1731. }
  1732. ]
  1733. }
  1734. ]
  1735. }
  1736.  
  1737. {
  1738. "_id" : "product-detail",
  1739. "stateIn" : "catalog",
  1740. "stateOut" : "",
  1741. "triggers" : [
  1742. {
  1743. "evaluator" : "regexp",
  1744. "regexp" : "/Product detail/"
  1745. }
  1746. ],
  1747. "responses" : [
  1748. {
  1749. "type" : "SIMPLE",
  1750. "data" : {
  1751. "en" : {
  1752. "text" : "Once you are in the product page, scroll down to discover all the information you may need: description, available sizes, last purchases or clients who like it."
  1753. }
  1754. }
  1755. },
  1756. {
  1757. "type" : "SIMPLE",
  1758. "data" : {
  1759. "en" : {
  1760. "text" : "Check out this video for more info about this topic!"
  1761. }
  1762. }
  1763. },
  1764. {
  1765. "type" : "VIDEO",
  1766. "data" : {
  1767. "type" : "VIDEO",
  1768. "data" : "http://www.example.it/video.mp4"
  1769. }
  1770. },
  1771. {
  1772. "type" : "SIMPLE",
  1773. "data" : {
  1774. "en" : {
  1775. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊"
  1776. }
  1777. }
  1778. },
  1779. {
  1780. "type" : "BUTTONS",
  1781. "data" : [
  1782. {
  1783. "key" : "new-user",
  1784. "value" : {
  1785. "en" : "New user"
  1786. }
  1787. },
  1788. {
  1789. "key" : "guide-me",
  1790. "value" : {
  1791. "en" : "Guide me"
  1792. }
  1793. },
  1794. {
  1795. "key" : "help-me",
  1796. "value" : {
  1797. "en" : "Help me"
  1798. }
  1799. }
  1800. ]
  1801. }
  1802. ]
  1803. }
  1804.  
  1805. {
  1806. "_id" : "transfer-request",
  1807. "stateIn" : "catalog",
  1808. "stateOut" : "",
  1809. "triggers" : [
  1810. {
  1811. "evaluator" : "regexp",
  1812. "regexp" : "/Transfer request/"
  1813. }
  1814. ],
  1815. "responses" : [
  1816. {
  1817. "type" : "SIMPLE",
  1818. "data" : {
  1819. "en" : {
  1820. "text" : "Check out this video to discover how to make a transfer request for a product 😊"
  1821. }
  1822. }
  1823. },
  1824. {
  1825. "type" : "VIDEO",
  1826. "data" : {
  1827. "type" : "VIDEO",
  1828. "data" : "http://www.example.it/video.mp4"
  1829. }
  1830. },
  1831. {
  1832. "type" : "SIMPLE",
  1833. "data" : {
  1834. "en" : {
  1835. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊"
  1836. }
  1837. }
  1838. },
  1839. {
  1840. "type" : "BUTTONS",
  1841. "data" : [
  1842. {
  1843. "key" : "new-user",
  1844. "value" : {
  1845. "en" : "New user"
  1846. }
  1847. },
  1848. {
  1849. "key" : "guide-me",
  1850. "value" : {
  1851. "en" : "Guide me"
  1852. }
  1853. },
  1854. {
  1855. "key" : "help-me",
  1856. "value" : {
  1857. "en" : "Help me"
  1858. }
  1859. }
  1860. ]
  1861. }
  1862. ]
  1863. }
  1864.  
  1865. {
  1866. "_id" : "no-catalog",
  1867. "stateIn" : "catalog",
  1868. "stateOut" : "",
  1869. "triggers" : [
  1870. {
  1871. "evaluator" : "regexp",
  1872. "regexp" : "/No thanks/"
  1873. }
  1874. ],
  1875. "responses" : [
  1876. {
  1877. "type" : "SIMPLE",
  1878. "data" : {
  1879. "en" : {
  1880. "text" : "Ok, I'm always at your disposal in creating new users, keep you up to date and help you 😊"
  1881. }
  1882. }
  1883. },
  1884. {
  1885. "type" : "BUTTONS",
  1886. "data" : [
  1887. {
  1888. "key" : "new-user",
  1889. "value" : {
  1890. "en" : "New user"
  1891. }
  1892. },
  1893. {
  1894. "key" : "guide-me",
  1895. "value" : {
  1896. "en" : "Guide me"
  1897. }
  1898. },
  1899. {
  1900. "key" : "help-me",
  1901. "value" : {
  1902. "en" : "Help me"
  1903. }
  1904. }
  1905. ]
  1906. }
  1907. ]
  1908. }
  1909.  
  1910.  
  1911. {
  1912. "_id" : "feed",
  1913. "stateIn" : "guideMe",
  1914. "stateOut" : "",
  1915. "triggers" : [
  1916. {
  1917. "evaluator" : "regexp",
  1918. "regexp" : "/Feed/"
  1919. }
  1920. ],
  1921. "responses" : [
  1922. {
  1923. "type" : "SIMPLE",
  1924. "data" : {
  1925. "en" : {
  1926. "text" : "In this section you will find the history of your activity with LUCE: purchases, tasks, appointments and more to discover!"
  1927. }
  1928. }
  1929. },
  1930. {
  1931. "type" : "SIMPLE",
  1932. "data" : {
  1933. "en" : {
  1934. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊"
  1935. }
  1936. }
  1937. },
  1938. {
  1939. "type" : "BUTTONS",
  1940. "data" : [
  1941. {
  1942. "key" : "new-user",
  1943. "value" : {
  1944. "en" : "New user"
  1945. }
  1946. },
  1947. {
  1948. "key" : "guide-me",
  1949. "value" : {
  1950. "en" : "Guide me"
  1951. }
  1952. },
  1953. {
  1954. "key" : "help-me",
  1955. "value" : {
  1956. "en" : "Help me"
  1957. }
  1958. }
  1959. ]
  1960. }
  1961. ]
  1962. }
  1963.  
  1964. {
  1965. "_id" : "profile",
  1966. "stateIn" : "guideMe",
  1967. "stateOut" : "profile",
  1968. "triggers" : [
  1969. {
  1970. "evaluator" : "regexp",
  1971. "regexp" : "/Profile/"
  1972. }
  1973. ],
  1974. "responses" : [
  1975. {
  1976. "type" : "SIMPLE",
  1977. "data" : {
  1978. "en" : {
  1979. "text" : "Here you will find your personal information and a set of info related to LUCE clienteling"
  1980. }
  1981. }
  1982. },
  1983. {
  1984. "type" : "BUTTONS",
  1985. "data" : [
  1986. {
  1987. "key" : "my-sales",
  1988. "value" : {
  1989. "en" : "My Sales"
  1990. }
  1991. },
  1992. {
  1993. "key" : "edit-profile",
  1994. "value" : {
  1995. "en" : "Edit profile"
  1996. }
  1997. },
  1998. {
  1999. "key" : "multiple-tags",
  2000. "value" : {
  2001. "en" : "Multiple tags"
  2002. }
  2003. }
  2004. ]
  2005. }
  2006. ]
  2007. }
  2008.  
  2009. {
  2010. "_id" : "my-sales",
  2011. "stateIn" : "profile",
  2012. "stateOut" : "",
  2013. "triggers" : [
  2014. {
  2015. "evaluator" : "regexp",
  2016. "regexp" : "/My Sales/"
  2017. }
  2018. ],
  2019. "responses" : [
  2020. {
  2021. "type" : "SIMPLE",
  2022. "data" : {
  2023. "en" : {
  2024. "text" : "The list of your sales: discover how to review them with this video!"
  2025. }
  2026. }
  2027. },
  2028. {
  2029. "type" : "VIDEO",
  2030. "data" : {
  2031. "type" : "VIDEO",
  2032. "data" : "http://www.example.it/video.mp4"
  2033. }
  2034. },
  2035. {
  2036. "type" : "SIMPLE",
  2037. "data" : {
  2038. "en" : {
  2039. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊"
  2040. }
  2041. }
  2042. },
  2043. {
  2044. "type" : "BUTTONS",
  2045. "data" : [
  2046. {
  2047. "key" : "new-user",
  2048. "value" : {
  2049. "en" : "New user"
  2050. }
  2051. },
  2052. {
  2053. "key" : "guide-me",
  2054. "value" : {
  2055. "en" : "Guide me"
  2056. }
  2057. },
  2058. {
  2059. "key" : "help-me",
  2060. "value" : {
  2061. "en" : "Help me"
  2062. }
  2063. }
  2064. ]
  2065. }
  2066. ]
  2067. }
  2068.  
  2069. {
  2070. "_id" : "edit-profile",
  2071. "stateIn" : "profile",
  2072. "stateOut" : "",
  2073. "triggers" : [
  2074. {
  2075. "evaluator" : "regexp",
  2076. "regexp" : "/Edit profile/"
  2077. }
  2078. ],
  2079. "responses" : [
  2080. {
  2081. "type" : "SIMPLE",
  2082. "data" : {
  2083. "en" : {
  2084. "text" : "You can edit the most important information of your personal profile. Let’s make your colleagues recognize you! Upload your profile picture: see how, with this video!"
  2085. }
  2086. }
  2087. },
  2088. {
  2089. "type" : "VIDEO",
  2090. "data" : {
  2091. "type" : "VIDEO",
  2092. "data" : "http://www.example.it/video.mp4"
  2093. }
  2094. },
  2095. {
  2096. "type" : "SIMPLE",
  2097. "data" : {
  2098. "en" : {
  2099. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊"
  2100. }
  2101. }
  2102. },
  2103. {
  2104. "type" : "BUTTONS",
  2105. "data" : [
  2106. {
  2107. "key" : "new-user",
  2108. "value" : {
  2109. "en" : "New user"
  2110. }
  2111. },
  2112. {
  2113. "key" : "guide-me",
  2114. "value" : {
  2115. "en" : "Guide me"
  2116. }
  2117. },
  2118. {
  2119. "key" : "help-me",
  2120. "value" : {
  2121. "en" : "Help me"
  2122. }
  2123. }
  2124. ]
  2125. }
  2126. ]
  2127. }
  2128.  
  2129. {
  2130. "_id" : "multiple-tags",
  2131. "stateIn" : "profile",
  2132. "stateOut" : "",
  2133. "triggers" : [
  2134. {
  2135. "evaluator" : "regexp",
  2136. "regexp" : "/Multiple tags/"
  2137. }
  2138. ],
  2139. "responses" : [
  2140. {
  2141. "type" : "SIMPLE",
  2142. "data" : {
  2143. "en" : {
  2144. "text" : "From your personal profile you can directly manage all the tags related to your clients: watch this video!"
  2145. }
  2146. }
  2147. },
  2148. {
  2149. "type" : "VIDEO",
  2150. "data" : {
  2151. "type" : "VIDEO",
  2152. "data" : "http://www.example.it/video.mp4"
  2153. }
  2154. },
  2155. {
  2156. "type" : "SIMPLE",
  2157. "data" : {
  2158. "en" : {
  2159. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊"
  2160. }
  2161. }
  2162. },
  2163. {
  2164. "type" : "BUTTONS",
  2165. "data" : [
  2166. {
  2167. "key" : "new-user",
  2168. "value" : {
  2169. "en" : "New user"
  2170. }
  2171. },
  2172. {
  2173. "key" : "guide-me",
  2174. "value" : {
  2175. "en" : "Guide me"
  2176. }
  2177. },
  2178. {
  2179. "key" : "help-me",
  2180. "value" : {
  2181. "en" : "Help me"
  2182. }
  2183. }
  2184. ]
  2185. }
  2186. ]
  2187. }
  2188.  
  2189. {
  2190. "_id" : "help-me",
  2191. "stateIn" : "selectAction",
  2192. "stateOut" : "",
  2193. "triggers" : [
  2194. {
  2195. "evaluator" : "regexp",
  2196. "regexp" : "/Help me/"
  2197. }
  2198. ],
  2199. "responses" : [],
  2200. "hook": {
  2201. "class":"App\\Hooks\\RayHook",
  2202. "function":"checkLogin"
  2203. }
  2204. }
  2205.  
  2206. {
  2207. "_id" : "aut-issue",
  2208. "stateIn" : "issue",
  2209. "stateOut" : "autIssue",
  2210. "triggers" : [
  2211. {
  2212. "evaluator" : "regexp",
  2213. "regexp" : "/Authentication issue/"
  2214. }
  2215. ],
  2216. "responses" : [
  2217. {
  2218. "type" : "SIMPLE",
  2219. "data" : {
  2220. "en" : {
  2221. "text" : "Don't worry, I'm here to help you. Do you see the following message?"
  2222. }
  2223. }
  2224. },
  2225. {
  2226. "type" : "IMAGE",
  2227. "data" : {
  2228. "type" : "IMAGE",
  2229. "data" : "http://www.example.it/image.png"
  2230. }
  2231. },
  2232. {
  2233. "type" : "BUTTONS",
  2234. "data" : [
  2235. {
  2236. "key" : "yes",
  2237. "value" : {
  2238. "en" : "Yes"
  2239. }
  2240. },
  2241. {
  2242. "key" : "no",
  2243. "value" : {
  2244. "en" : "No"
  2245. }
  2246. }
  2247. ]
  2248. }
  2249. ]
  2250. }
  2251.  
  2252. {
  2253. "_id" : "ask-message-yes",
  2254. "stateIn" : "autIssue",
  2255. "stateOut" : "",
  2256. "triggers" : [
  2257. {
  2258. "evaluator" : "regexp",
  2259. "regexp" : "/Yes/"
  2260. }
  2261. ],
  2262. "responses" : [
  2263. {
  2264. "type" : "SIMPLE",
  2265. "data" : {
  2266. "en" : {
  2267. "text" : "Ok, you should open a ticket to MIS, to ask for a re-provisioning of the device."
  2268. }
  2269. }
  2270. },
  2271. {
  2272. "type" : "SIMPLE",
  2273. "data" : {
  2274. "en" : {
  2275. "text" : "For the moment you can login tapping on β€œlogin with another account” button 😊"
  2276. }
  2277. }
  2278. },
  2279. {
  2280. "type" : "SIMPLE",
  2281. "data" : {
  2282. "en" : {
  2283. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊"
  2284. }
  2285. }
  2286. },
  2287. {
  2288. "type" : "BUTTONS",
  2289. "data" : [
  2290. {
  2291. "key" : "new-user",
  2292. "value" : {
  2293. "en" : "New user"
  2294. }
  2295. },
  2296. {
  2297. "key" : "guide-me",
  2298. "value" : {
  2299. "en" : "Guide me"
  2300. }
  2301. },
  2302. {
  2303. "key" : "help-me",
  2304. "value" : {
  2305. "en" : "Help me"
  2306. }
  2307. }
  2308. ]
  2309. }
  2310. ]
  2311. }
  2312.  
  2313. {
  2314. "_id" : "ask-message-no",
  2315. "stateIn" : "autIssue",
  2316. "stateOut" : "explainProblem",
  2317. "triggers" : [
  2318. {
  2319. "evaluator" : "regexp",
  2320. "regexp" : "/No/"
  2321. }
  2322. ],
  2323. "responses" : [
  2324. {
  2325. "type" : "SIMPLE",
  2326. "data" : {
  2327. "en" : {
  2328. "text" : "Ok, explain your problem to me and I'll send an e-mail to the Sake Team who will contact you as soon as possible 😊"
  2329. }
  2330. }
  2331. },
  2332. {
  2333. "type" : "SIMPLE",
  2334. "data" : {
  2335. "en" : {
  2336. "text" : "If you want, you can attach files to better explain your issue 😊"
  2337. }
  2338. }
  2339. },
  2340. {
  2341. "type" : "SIMPLE",
  2342. "data" : {
  2343. "en" : {
  2344. "text" : "When you'll finish, tell me \"done\"."
  2345. }
  2346. }
  2347. }
  2348. ]
  2349. }
  2350.  
  2351. {
  2352. "_id" : "issue-name",
  2353. "stateIn" : "explainProblem",
  2354. "stateOut" : "issueName",
  2355. "triggers" : [],
  2356. "responses" : [
  2357. {
  2358. "type" : "SIMPLE",
  2359. "data" : {
  2360. "en" : {
  2361. "text" : "OK, now can you tell me your name?"
  2362. }
  2363. }
  2364. }
  2365. ],
  2366. "hook": {
  2367. "class":"App\\Hooks\\RayHook",
  2368. "function":"collectProblems"
  2369. }
  2370. }
  2371.  
  2372. {
  2373. "_id" : "issue-surname",
  2374. "stateIn" : "issueName",
  2375. "stateOut" : "issueSurname",
  2376. "triggers" : [],
  2377. "responses" : [
  2378. {
  2379. "type" : "SIMPLE",
  2380. "data" : {
  2381. "en" : {
  2382. "text" : "and your Surname?"
  2383. }
  2384. }
  2385. }
  2386. ],
  2387. "hook": {
  2388. "class":"App\\Hooks\\RayHook",
  2389. "function":"issueName"
  2390. }
  2391. }
  2392.  
  2393. {
  2394. "_id" : "issue-email",
  2395. "stateIn" : "issueSurname",
  2396. "stateOut" : "issueEmail",
  2397. "triggers" : [],
  2398. "responses" : [
  2399. {
  2400. "type" : "SIMPLE",
  2401. "data" : {
  2402. "en" : {
  2403. "text" : "Fine, what's your e-mail address?"
  2404. }
  2405. }
  2406. }
  2407. ],
  2408. "hook": {
  2409. "class":"App\\Hooks\\RayHook",
  2410. "function":"issueSurname"
  2411. }
  2412. }
  2413.  
  2414. {
  2415. "_id" : "validate-email",
  2416. "stateIn" : "issueEmail",
  2417. "stateOut" : "issueSAcode",
  2418. "triggers" : [],
  2419. "responses" : [],
  2420. "hook": {
  2421. "class":"App\\Hooks\\RayHook",
  2422. "function":"validateEmail"
  2423. }
  2424. }
  2425.  
  2426. {
  2427. "_id" : "issue-sa-code",
  2428. "stateIn" : "issueSAcode",
  2429. "stateOut" : "issueTellSAcode",
  2430. "triggers" : [],
  2431. "responses" : [
  2432. {
  2433. "type" : "SIMPLE",
  2434. "data" : {
  2435. "en" : {
  2436. "text" : "Ok, do you know your SA code? Remember you can find it in your last transaction ticket 😊"
  2437. }
  2438. }
  2439. },
  2440. {
  2441. "type" : "BUTTONS",
  2442. "data" : [
  2443. {
  2444. "key" : "sa-yes",
  2445. "value" : {
  2446. "en" : "Yep"
  2447. }
  2448. },
  2449. {
  2450. "key" : "sa-no",
  2451. "value" : {
  2452. "en" : "Nope"
  2453. }
  2454. }
  2455. ]
  2456. }
  2457. ]
  2458. }
  2459.  
  2460. {
  2461. "_id" : "ask-sa",
  2462. "stateIn" : "issueTellSAcode",
  2463. "stateOut" : "saYes",
  2464. "triggers" : [
  2465. {
  2466. "evaluator" : "regexp",
  2467. "regexp" : "/Yep/"
  2468. }
  2469. ],
  2470. "responses" : [
  2471. {
  2472. "type" : "SIMPLE",
  2473. "data" : {
  2474. "en" : {
  2475. "text" : "Great! What's your SA code?"
  2476. }
  2477. }
  2478. }
  2479. ]
  2480. }
  2481.  
  2482. {
  2483. "_id" : "sent",
  2484. "stateIn" : "saYes",
  2485. "stateOut" : "",
  2486. "triggers" : [],
  2487. "responses" : [
  2488. {
  2489. "type" : "SIMPLE",
  2490. "data" : {
  2491. "en" : {
  2492. "text" : "Fine, I've just send the e-mail, the Sake team will contact you as soon as possible 😊"
  2493. }
  2494. }
  2495. },
  2496. {
  2497. "type" : "SIMPLE",
  2498. "data" : {
  2499. "en" : {
  2500. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊."
  2501. }
  2502. }
  2503. },
  2504. {
  2505. "type" : "BUTTONS",
  2506. "data" : [
  2507. {
  2508. "key" : "new-user",
  2509. "value" : {
  2510. "en" : "New user"
  2511. }
  2512. },
  2513. {
  2514. "key" : "guide-me",
  2515. "value" : {
  2516. "en" : "Guide me"
  2517. }
  2518. },
  2519. {
  2520. "key" : "help-me",
  2521. "value" : {
  2522. "en" : "Help me"
  2523. }
  2524. }
  2525. ]
  2526. }
  2527. ],
  2528.  
  2529. "hook": {
  2530. "class":"App\\Hooks\\RayHook",
  2531. "function":"sendEmail"
  2532. }
  2533. }
  2534.  
  2535. {
  2536. "_id" : "nope-sent",
  2537. "stateIn" : "issueTellSAcode",
  2538. "stateOut" : "",
  2539. "triggers" : [
  2540. {
  2541. "evaluator" : "regexp",
  2542. "regexp" : "/Nope/"
  2543. }
  2544. ],
  2545. "responses" : [
  2546. {
  2547. "type" : "SIMPLE",
  2548. "data" : {
  2549. "en" : {
  2550. "text" : "Don't worry, this is not a problem! I'll send the e-mail to the Sake team who will contact you as soon as possible 😊"
  2551. }
  2552. }
  2553. },
  2554. {
  2555. "type" : "SIMPLE",
  2556. "data" : {
  2557. "en" : {
  2558. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊."
  2559. }
  2560. }
  2561. },
  2562. {
  2563. "type" : "BUTTONS",
  2564. "data" : [
  2565. {
  2566. "key" : "new-user",
  2567. "value" : {
  2568. "en" : "New user"
  2569. }
  2570. },
  2571. {
  2572. "key" : "guide-me",
  2573. "value" : {
  2574. "en" : "Guide me"
  2575. }
  2576. },
  2577. {
  2578. "key" : "help-me",
  2579. "value" : {
  2580. "en" : "Help me"
  2581. }
  2582. }
  2583. ]
  2584. }
  2585. ],
  2586.  
  2587. "hook": {
  2588. "class":"App\\Hooks\\RayHook",
  2589. "function":"sendEmail"
  2590. }
  2591. }
  2592.  
  2593. {
  2594. "_id" : "NoLogin-other-issue",
  2595. "stateIn" : "Other",
  2596. "stateOut" : "noLoginExplainProblem",
  2597. "triggers" : [
  2598. {
  2599. "evaluator" : "regexp",
  2600. "regexp" : "/Other issue/"
  2601. }
  2602. ],
  2603. "responses" : [
  2604. {
  2605. "type" : "SIMPLE",
  2606. "data" : {
  2607. "en" : {
  2608. "text" : "Ok, explain your problem to me and I'll send an e-mail to the Sake Team who will contact you as soon as possible 😊"
  2609. }
  2610. }
  2611. },
  2612. {
  2613. "type" : "SIMPLE",
  2614. "data" : {
  2615. "en" : {
  2616. "text" : "If you want, you can attach files to better explain your issue 😊"
  2617. }
  2618. }
  2619. },
  2620. {
  2621. "type" : "SIMPLE",
  2622. "data" : {
  2623. "en" : {
  2624. "text" : "When you'll finish, tell me \"done\"."
  2625. }
  2626. }
  2627. }
  2628. ]
  2629. }
  2630.  
  2631. {
  2632. "_id" : "noLogin-name",
  2633. "stateIn" : "noLoginExplainProblem",
  2634. "stateOut" : "noLoginName",
  2635. "triggers" : [],
  2636. "responses" : [
  2637. {
  2638. "type" : "SIMPLE",
  2639. "data" : {
  2640. "en" : {
  2641. "text" : "OK, now can you tell me your name?"
  2642. }
  2643. }
  2644. }
  2645. ],
  2646. "hook": {
  2647. "class":"App\\Hooks\\RayHook",
  2648. "function":"collectProblems"
  2649. }
  2650. }
  2651.  
  2652. {
  2653. "_id" : "noLogin-surname",
  2654. "stateIn" : "noLoginName",
  2655. "stateOut" : "noLoginSurname",
  2656. "triggers" : [],
  2657. "responses" : [
  2658. {
  2659. "type" : "SIMPLE",
  2660. "data" : {
  2661. "en" : {
  2662. "text" : "and your Surname?"
  2663. }
  2664. }
  2665. }
  2666. ],
  2667. "hook": {
  2668. "class":"App\\Hooks\\RayHook",
  2669. "function":"issueName"
  2670. }
  2671. }
  2672.  
  2673. {
  2674. "_id" : "noLogin-email",
  2675. "stateIn" : "noLoginSurname",
  2676. "stateOut" : "noLoginEmail",
  2677. "triggers" : [],
  2678. "responses" : [
  2679. {
  2680. "type" : "SIMPLE",
  2681. "data" : {
  2682. "en" : {
  2683. "text" : "Fine, what's your e-mail address?"
  2684. }
  2685. }
  2686. }
  2687. ],
  2688. "hook": {
  2689. "class":"App\\Hooks\\RayHook",
  2690. "function":"issueSurname"
  2691. }
  2692. }
  2693.  
  2694. {
  2695. "_id" : "noLogin-validate-email",
  2696. "stateIn" : "noLoginEmail",
  2697. "stateOut" : "noLoginSAcode",
  2698. "triggers" : [],
  2699. "responses" : [],
  2700. "hook": {
  2701. "class":"App\\Hooks\\RayHook",
  2702. "function":"validateEmail"
  2703. }
  2704. }
  2705.  
  2706. {
  2707. "_id" : "noLogin-sa-code",
  2708. "stateIn" : "noLoginSAcode",
  2709. "stateOut" : "noLoginTellSAcode",
  2710. "triggers" : [],
  2711. "responses" : [
  2712. {
  2713. "type" : "SIMPLE",
  2714. "data" : {
  2715. "en" : {
  2716. "text" : "Ok, do you know your SA code? Remember you can find it in your last transaction ticket 😊"
  2717. }
  2718. }
  2719. },
  2720. {
  2721. "type" : "BUTTONS",
  2722. "data" : [
  2723. {
  2724. "key" : "sa-yes",
  2725. "value" : {
  2726. "en" : "Yep"
  2727. }
  2728. },
  2729. {
  2730. "key" : "sa-no",
  2731. "value" : {
  2732. "en" : "Nope"
  2733. }
  2734. }
  2735. ]
  2736. }
  2737. ]
  2738. }
  2739.  
  2740. {
  2741. "_id" : "noLogin-ask-sa",
  2742. "stateIn" : "noLoginTellSAcode",
  2743. "stateOut" : "noLoginSaYes",
  2744. "triggers" : [
  2745. {
  2746. "evaluator" : "regexp",
  2747. "regexp" : "/Yep/"
  2748. }
  2749. ],
  2750. "responses" : [
  2751. {
  2752. "type" : "SIMPLE",
  2753. "data" : {
  2754. "en" : {
  2755. "text" : "Great! What's your SA code?"
  2756. }
  2757. }
  2758. }
  2759. ]
  2760. }
  2761.  
  2762. {
  2763. "_id" : "noLogin-sent",
  2764. "stateIn" : "noLoginSaYes",
  2765. "stateOut" : "",
  2766. "triggers" : [],
  2767. "responses" : [
  2768. {
  2769. "type" : "SIMPLE",
  2770. "data" : {
  2771. "en" : {
  2772. "text" : "Fine, I've just send the e-mail, the Sake team will contact you as soon as possible 😊"
  2773. }
  2774. }
  2775. },
  2776. {
  2777. "type" : "SIMPLE",
  2778. "data" : {
  2779. "en" : {
  2780. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊."
  2781. }
  2782. }
  2783. },
  2784. {
  2785. "type" : "BUTTONS",
  2786. "data" : [
  2787. {
  2788. "key" : "new-user",
  2789. "value" : {
  2790. "en" : "New user"
  2791. }
  2792. },
  2793. {
  2794. "key" : "guide-me",
  2795. "value" : {
  2796. "en" : "Guide me"
  2797. }
  2798. },
  2799. {
  2800. "key" : "help-me",
  2801. "value" : {
  2802. "en" : "Help me"
  2803. }
  2804. }
  2805. ]
  2806. }
  2807. ],
  2808.  
  2809. "hook": {
  2810. "class":"App\\Hooks\\RayHook",
  2811. "function":"sendEmail"
  2812. }
  2813. }
  2814.  
  2815. {
  2816. "_id" : "noLogin-nope-sent",
  2817. "stateIn" : "noLoginTellSAcode",
  2818. "stateOut" : "",
  2819. "triggers" : [
  2820. {
  2821. "evaluator" : "regexp",
  2822. "regexp" : "/Nope/"
  2823. }
  2824. ],
  2825. "responses" : [
  2826. {
  2827. "type" : "SIMPLE",
  2828. "data" : {
  2829. "en" : {
  2830. "text" : "Don't worry, this is not a problem! I'll send the e-mail to the Sake team who will contact you as soon as possible 😊"
  2831. }
  2832. }
  2833. },
  2834. {
  2835. "type" : "SIMPLE",
  2836. "data" : {
  2837. "en" : {
  2838. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊."
  2839. }
  2840. }
  2841. },
  2842. {
  2843. "type" : "BUTTONS",
  2844. "data" : [
  2845. {
  2846. "key" : "new-user",
  2847. "value" : {
  2848. "en" : "New user"
  2849. }
  2850. },
  2851. {
  2852. "key" : "guide-me",
  2853. "value" : {
  2854. "en" : "Guide me"
  2855. }
  2856. },
  2857. {
  2858. "key" : "help-me",
  2859. "value" : {
  2860. "en" : "Help me"
  2861. }
  2862. }
  2863. ]
  2864. }
  2865. ],
  2866.  
  2867. "hook": {
  2868. "class":"App\\Hooks\\RayHook",
  2869. "function":"sendEmail"
  2870. }
  2871. }
  2872.  
  2873. {
  2874. "_id" : "other-issue",
  2875. "stateIn" : "loggedIssue",
  2876. "stateOut" : "other",
  2877. "triggers" : [
  2878. {
  2879. "evaluator" : "regexp",
  2880. "regexp" : "/Other issue/"
  2881. }
  2882. ],
  2883. "responses" : [
  2884. {
  2885. "type" : "SIMPLE",
  2886. "data" : {
  2887. "en" : {
  2888. "text" : "Ok, explain your problem to me and I'll send an e-mail to the Sake Team who will contact you as soon as possible 😊"
  2889. }
  2890. }
  2891. },
  2892. {
  2893. "type" : "SIMPLE",
  2894. "data" : {
  2895. "en" : {
  2896. "text" : "If you want, you can attach files to better explain your issue 😊"
  2897. }
  2898. }
  2899. },
  2900. {
  2901. "type" : "SIMPLE",
  2902. "data" : {
  2903. "en" : {
  2904. "text" : "When you'll finish, tell me \"done\"."
  2905. }
  2906. }
  2907. }
  2908. ]
  2909. }
  2910.  
  2911. {
  2912. "_id" : "other-sent",
  2913. "stateIn" : "other",
  2914. "stateOut" : "",
  2915. "triggers" : [],
  2916. "responses" : [
  2917. {
  2918. "type" : "SIMPLE",
  2919. "data" : {
  2920. "en" : {
  2921. "text" : "Here we are, I'll send the e-mail 😊"
  2922. }
  2923. }
  2924. },
  2925. {
  2926. "type" : "SIMPLE",
  2927. "data" : {
  2928. "en" : {
  2929. "text" : "I'm always at your disposal in creating new users, keep you up to date and help you 😊."
  2930. }
  2931. }
  2932. },
  2933. {
  2934. "type" : "BUTTONS",
  2935. "data" : [
  2936. {
  2937. "key" : "new-user",
  2938. "value" : {
  2939. "en" : "New user"
  2940. }
  2941. },
  2942. {
  2943. "key" : "guide-me",
  2944. "value" : {
  2945. "en" : "Guide me"
  2946. }
  2947. },
  2948. {
  2949. "key" : "help-me",
  2950. "value" : {
  2951. "en" : "Help me"
  2952. }
  2953. }
  2954. ]
  2955. }
  2956. ],
  2957. "hook": {
  2958. "class":"App\\Hooks\\RayHook",
  2959. "function":"collectProblems"
  2960. }
  2961. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement