Invoke Embedded Instances
You've built an integration, and your customer has configured and deployed an instance for themselves. Now, you'd like to invoke that instance in response to some event in your app (someone clicks a button, etc).
In this video, we demonstrate how to fetch the instance's webhook URLs and use those URLs to invoke the deployed instance's flows.
This query was used in the video to fetch the webhook URLs for the Hubspot instance. You can modify it to fetch the webhook URLs for any of your embedded instances.
Example GraphQL query to fetch Hubspot instance webhook URLs
query {
instances(name: "Hubspot") {
nodes {
name
integration {
name
}
flowConfigs {
nodes {
flow {
name
}
webhookUrl
}
}
}
}
}
See Also: