Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Example for a Headless Bot using the BDK 2.0

Hi Team,

are there any examples for a Headless Bot in Python? I am very interested in creating a chatbot that sends notifications based on external events. Any hints are highly appreciated.

Best regards,
Florian

Votes Newest

Answers


A headless bot as a concept is essentially a script that performs a specific action like sending a message and terminating right after, as opposed to a conversational one that is listening for commands 24/7. So the actual implementation could differ wildly depending on how your architect it.

For example, you could have the bot accept command line arguments representing the stream id and message content, then use an external mechanism to launch the bot when your event triggers. You could also bundle an embedded web server into the bot that accepts a webhook style payload, but this will need to run 24/7.

The implementation will really depend on your choice of stack, the use-case and any existing environmental or architectural constructs. These permutations would make any given example of little use so you could try building out a basic bot using the Symphony Generator first.

  
  
Posted 2 years ago
Yong Sheng Tan
39 × 2 Administrator
10K Views
1 Answer
2 years ago
2 years ago
Tags