Skip to content


The Pokémon bot is a simple integration with the PokéAPI. The purpose of this example is to demonstrate the RPC Extension Server.


This bot's Finite State Machine can be visualized like this:


This bot also demonstrates:

  • The state any, that is used in this case to transition from any state into the initial state, when the faq command is executed.
  • The command any, that is used to always run the search_pokemon extension, when in the search_pokemon state.
  • The slot pokemon is saved when transitioning from search_pokemon into the intial state.

Run it

To run this example:

go run examples/03_pokemon/ext/ext.go

And in other terminal:

chatto --path examples/03_pokemon/