This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# directions.yml | |
- reply_type: text | |
text: | | |
Utilize nosso link de localização do Maps, com ele é fácil você chegar de qualquer lugar do mundo. | |
Localização: https://goo.gl/maps/AB2Bp7Uewct | |
- reply_type: text | |
text: | | |
Veja também o link do vídeo mostrando como chegar de carro até a entrada da cachoeira. =) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# (...) | |
flow :informations do | |
state :directions | |
state :general | |
state :menu | |
end | |
# (...) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class InformationsController < BotController | |
def directions | |
send_replies | |
end | |
def general | |
send_replies | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BotController < Stealth::Controller | |
helper :all | |
def route | |
if current_message.payload.present? | |
handle_payloads | |
else | |
handle_messages | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- reply_type: text | |
text: | | |
Olá! Que bom que entrou em contato. | |
Sou a assistente virtual da Cachoeira Esmeralda. Posso te auxiliar tirando alguma de suas dúvidas e te ajudando a encontrar nossa cachoeira. | |
buttons: | |
- type: payload | |
text: 'Começar' | |
payload: 'MAIN_MENU' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HellosController < BotController | |
def say_hello | |
send_replies | |
end | |
def main_menu | |
send_replies | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flow :hello do | |
state :say_hello | |
state :say_default_answer | |
state :main_menu | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: &default | |
# ========================================== | |
# ===== Example Facebook Service Setup ===== | |
# ========================================== | |
facebook: | |
verify_token: <%= ENV['VERIFY_TOKEN'] %> | |
page_access_token: <%= ENV['FACEBOOK_PAGE_ACCESS_TOKEN'] %> | |
setup: | |
greeting: # Greetings are broken up by locale | |
- locale: default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- reply_type: text | |
text: Hello World! |