Skip to main content

Bot Selector and API Search

Key Points

Setting Up the Movie Selection Virtual Assistant

  • Created a new virtual assistant with the following configuration:
    • Role: Movie selector
    • Specific instructions:
      • Always return the response using a tag
      • Use the <movie> tag for the response
      • If no information is found, return "NOT_FOUND"

How It Works

  1. User sends a request about a movie
  2. Assistant selects the movie based on the description
  3. Returns the movie name inside the <movie> tag
  4. System uses the movie name to look up details in the database

Practical Demonstration

  • Test example with an astronaut movie
  • Bot identified "Interstellar" as the answer
  • Used Split and Getter techniques to extract information
info

At the end, the movies dataset's cursor.current didn't show Interstellar in the log because the movie probably wasn't in the loaded page of the dataset (in its data.records). Even trying to do a select using title = Interstellar, if there's no movie with that title in the Dataset's data.records, the Dataset just keeps the previous selection.

Next Steps

  • Integrate with the IMDB API to fetch full movie details
  • Improve the accuracy of movie selection

Concepts Used

  • Virtual assistants
  • String manipulation
  • Querying a custom data source

Important Notes

  • Flexibility in configuring the assistant
  • Room for adjustments as needed