Tasks
Create Stub
Creates a stub.
This action allows creation of a new stub on Stubber.
Example Uses
- Use to trigger the creation of a new stub on the platform from a webhook
- Use on a feedback action on a _create context stub, to create new conversation stubs
- Use to start a webchat session stub from a creation stub
- Use in an AI action to open a new support ticket stub
Consequences
The task attaches an add_event sendaction that will reply to the stubpost with the new stub's stubref. This allows the new stubref to be visible on the stub.
Basic usage
Parameters
templateuuid required string
The UUID of the template from which a stub will be created.
template_branch required string
The branch of the template of which a stub will be created.
template_context required string
The context of the template of which a stub will be created.
subject string
Sets the subject of the new stub.
Default: stub created by task
data object
Data that will be merged into the new stub's stub.data.
copy_contact_lists boolean
If set to true, the new stub will contain the contact lists of the stub it was created from.
Result
Properties
stubref string
The stubref of the newly created stub.
sendActionsList array
The _add_event action that has been attached by the task.
Examples
Create a stub with data
Creates a stub of the current flow with additional starting data.