Pokemon A Name
and Pokemon B Name
variable. Those variables will later be used in the HTTP request and ChatGPT input.
Change those name inputs to let other Pokemons to participate in combat.
{{steps.pokemon-a-name.value}}
at the end of the request URL, which is the Variable we assigned in the previous step. This way, we will receive information about Charizard
from the PokeAPI in the default template. To receive information about other Pokemon, we simply change the input in the variable Pokemon Name A
.
In the second HTTP request we repeat the same process to receive information about Pokemon B.
{{steps.pokemon-a.outputs.Body.abilities}}
= Pokemon A Abilities
.
An example for that array would be:
Pokemon B Abilities
.
Answer this question with the pokemon name and give a one sentence explanation: Which Pokemon Would win in a battle of abilities between{{steps.pokemon-a-name.value}}
with{{steps.pokemon-a-abilities.value.[0].ability.name}}
,{{steps.pokemon-a-abilities.value.[1].ability.name}}
VS{{steps.pokemon-b-name.value}}
with{{steps.pokemon-b-abilities.value.[0].ability.name}}
,{{steps.pokemon-b-abilities.value.[1].ability.name}}
?
Pokemon Name A
and Pokemon Name B
from the route and rather provide those inputs through a request you send to this endpoint.
How to do it:
{{steps.pokemon-a-name.value}}
and {{steps.pokemon-b-name.value}}
to {{inputs.body.pokemona}}
and {{inputs.body.pokemonb}}