55 lines
1.5 KiB
Ruby
55 lines
1.5 KiB
Ruby
class Captain::Tools::Definitions
|
|
ALL = {
|
|
'status_suites' => {
|
|
type: :http,
|
|
method: :get,
|
|
url: 'https://oxpi.com.br/api/PlugPlay/api/SuitesStatus',
|
|
description: 'Check suite availability'
|
|
},
|
|
'maria_fotos' => {
|
|
type: :webhook,
|
|
description: 'Send photos via webhook'
|
|
},
|
|
'escalar_humano' => {
|
|
type: :webhook,
|
|
description: 'Escalate to human agent'
|
|
},
|
|
'react_to_message' => {
|
|
type: :internal,
|
|
name: 'Reagir a Mensagens',
|
|
description: 'React to customer messages with emoji (👍, ❤️, 😊)'
|
|
},
|
|
'update_contact' => {
|
|
type: :internal,
|
|
name: 'Atualizar Contato',
|
|
description: 'Atualiza nome e CPF do contato atual'
|
|
},
|
|
'check_availability' => {
|
|
type: :internal,
|
|
name: 'Consultar Disponibilidade',
|
|
description: 'Verifica preço e disponibilidade de suíte'
|
|
},
|
|
'create_reservation_intent' => {
|
|
type: :internal,
|
|
name: 'Criar Intenção de Reserva',
|
|
description: 'Salva rascunho da reserva com valor acordado'
|
|
},
|
|
'generate_pix' => {
|
|
type: :internal,
|
|
name: 'Gerar Pix (Finalizar)',
|
|
description: 'Gera Pix para a reserva em rascunho atual'
|
|
},
|
|
'list_reservations' => {
|
|
type: :internal,
|
|
name: 'Listar Reservas',
|
|
description: 'Lista as ultimas reservas do contato atual'
|
|
},
|
|
'faq_lookup' => {
|
|
type: :internal,
|
|
name: 'Pesquisar FAQ',
|
|
description: 'Busca respostas no FAQ por similaridade semantica',
|
|
always_on: true
|
|
}
|
|
}.freeze
|
|
end
|