Integration
Step 1 - Set Context
Make a webhook to the Set Context endpoint. For example:agent.py
Step 2 - Transfer call:
Just like it sounds - this is just a simple transfer. If you were using python, this would look like:Step 3 - Receive Callback (optional):
If you specified a number in thecallback
field, the caller will be transfered back to this number. There is nothing you need to do for this step.
Step 4 - Get Context (optional):
After the payment portion is complete, Protegee will transfer the call back to whatever number is specified in thecallback
field.
In that agent, you’ll want to make a webhook to the Get Context endpoint.
This will give you all the context you need to continue the call.
For example:
agent.py
Hint: You can use the
memory
field in Set Context in order to share information between your agents! For example, you can pass a summary of the call.