Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Within the Workflow Designer, you can find the activities that allow creating providers and webhooks for uContact.

The providers and webhooks flows share some activities with the bots designer, plus other exclusive extra activities for its development.

Content


Once you select the desired start activity, the activities linked to that start activity will deploy.


ChannelProviderStartActivity

Available variables

  • AGENT
    Agent’s name, if there is an interaction.

  • MESSAGE

  • TO
    Number addressee.

  • ATTACHMENTS
    Objects array, each one containing an attachment.

    [
      {
        "extension":"png",
        "path":"20210226/8b5eb91a-2799-4c30-a712-9cfbbd333f49.1584030188436.png",
        "url":"https://example.ucontactcloud.com/attachments/20210226/8b5eb91a-2799-4c30-a712-9cfbbd333f49.1584030188436.png",
        "type":"image/png"
      }
    ]
  • CAMPAIGN
    Interaction’s campaign.

  • GUID
    Interaction’s GUID.

  • SMS_GUID
    Unique GUID of the message.

To create a personalized provider, we usually use the activity ExecWebService.


WebhookStartActivity

Available variables

BODY

  • type: Obj

  • example:

{ "name": "John" }

HEADERS

  • type: Obj

  • example:

{
	"Accept"🙁
		"/"
	],
	"Cache-Control"🙁
		"no-cache"
	],
	"Connection"🙁
		"close"
	],
	"User-Agent"🙁
		"PostmanRuntime/7.26.8"
	]
}
  • They can be: sent, delivered, read, error, invalid_session and invalid_number.

QUERY_PARAMS

  • Type: Object

  • Example

{
  "Phone":"123123",
  "Name":"John"
}

  • No labels