</>
API tab.
name
and phone
.event.inputFields
.wait: true
and modify the code to handle the response.
result.outputs
match the actual output keys from your spell.
<YOUR_RESPELL_API_KEY>
: Your Respell API key. It’s recommended to store this securely using HubSpot’s Secrets feature.<YOUR_SPELL_ID>
: The ID of the spell you want to trigger.inputs
object based on your spell’s required inputs.transcript
and answered_by
in the callback
function to match the data you need from the spell’s response.</>
API tab.
RESPELL_API_KEY
with your API key as the value.process.env.RESPELL_API_KEY
.event.inputFields
to access data from any action in your workflow, allowing you to pass dynamic data to your spell.
console.log()
statements to log information for debugging purposes. These logs can be viewed in the workflow execution history.
<YOUR_SPELL_ID>
with your actual spell ID.RESPELL_API_KEY
.