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
required string
templateuuid The UUID of the template from which a stub will be created.
required string
template_branch The branch of the template of which a stub will be created.
required string
template_context The context of the template of which a stub will be created.
string
subject Sets the subject of the new stub.
Default: stub created by task
object
data Data that will be merged into the new stub's stub.data
.
boolean
copy_contact_lists If set to true
, the new stub will contain the contact lists of the stub it was created from.
Result
Properties
string
stubref The stubref of the newly created stub.
array
sendActionsList 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.