Skip to content

peppesapienza/FabulaKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

82 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

[WIP] FabulaKit

FabulaKit is a DSL for writing scripted conversation with a Bot. It can be used to build FAQ, provide app updates or guide the user into your product.

let conv = Conversation(key: "some") {
  Say(
  """
  Hey there ๐Ÿ‘‹!
  
  This is is a scripted Conversation
  """)
  Say("It runs automatically and it stops when the user needs to provide an input")
  Say("Like this...")
  Ask("Where do you live?", key: "city")
  Say("Wow!! I love ${city} ๐ŸŒ")
}

let bot = ChatBot()
bot.start(conv)

/// In some view
var body: some View {
  ZStack {
    YourMainView()
    ChatView(bot: bot)
  }
}

alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages