Download the PHP package socheatsok78/manychat-block-sdk without Composer
On this page you can find all versions of the php package socheatsok78/manychat-block-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download socheatsok78/manychat-block-sdk
More information about socheatsok78/manychat-block-sdk
Files in socheatsok78/manychat-block-sdk
Package manychat-block-sdk
Short Description ManyChat Block SDK (Unofficial)
License MIT
Homepage https://socheatsok78.github.io/manychat-block-sdk
Informations about the package manychat-block-sdk
ManyChat Block SDK (:warning: Unofficial)
Send any message block, like text, gallery, list and others. Attach buttons with custom payloads to continue interaction.
Trigger actions in ManyChat, like tagging a user, setting a Custom Field or notifying an admin.
:warning: This is an Unofficial SDK, Use at your own risk!
Example code:
Example response:
Installation
Require socheatsok78/manychat-block-sdk package to your project
or edit composer.json
Check latest release here. See CHANGELOG.md for release notes.
Contents
- Messages
- Attachments
- Buttons
- Actions
- Quick Reply
- Dynamic Block
- External Callback
Additional Documents
- docs
- laravel
:rotating_light: Limitations
Dynamic block has a limit to have not more than 10 messages in messages block, 11 quick replies and 5 actions.
| Type | Limit |
|---|---|
| Messages | 10 |
| Actions | 5 |
| Quick Replies | 11 |
| Buttons | 3 |
Messages
Create a message block like Text, List or Card.
Note: A message can add up to 3
Buttonblock, any thing more than thatManyChatwill not show your response
Text
Create a Text message block for sending text messages.
The Url, Flow, Node and Call buttons can be used with Text block.
List
Create a list message block, a set of items vertically. There are two types of list CompactList and LargeList.
-
CompactListrenders each item identically and is useful for presenting a list of items where no item is shown prominently. LargeListrenders the first item with a cover image with text overlaid
The Url, Flow, Node, Call and Buy buttons can be used with List block.
Note: We strongly suggest to use HTTPS protocol for your URLs
Warning: :warning: Vertical List will be deprecated by Facebook and will be rendered as a
Card
Card
Create a horizontal scrollable gallery. There are two types of card SquareCard and HorizontalCard.
The Url, Flow, Node, Call and Buy buttons can be used with Card block.
Note: We strongly suggest to use HTTPS protocol for your URLs
Element
Create a element block. It can only be used on List or Card block.
The Call, Url, Buy, Node and Flow buttons can be used with Element block.
Note: We strongly suggest to use HTTPS protocol for your URLs
Attachments
Create a attachment block like File, Image, Audio and Video.
File
Create a file block to send any other files, which are no larger than 25 MB.
Note: We strongly suggest to use HTTPS protocol for your URLs
Image
Create an image block to send an image. Image supports JPG, PNG and GIF images.
The Call, Url, Buy, Node and Flow buttons can be used with Element block.
Note: We strongly suggest to use HTTPS protocol for your URLs
Audio
Create an audio block send audio files, which are no larger than 25 MB.
The Call, Url, Buy, Node and Flow buttons can be used with Element block.
Note: We strongly suggest to use HTTPS protocol for your URLs
Video
Create an video block send video files, which are no larger than 25 MB.
The Call, Url, Buy, Node and Flow buttons can be used with Element block.
Note: We strongly suggest to use HTTPS protocol for your URLs
Buttons
Create a button block like Call, Url, Buy, Node and Flow.
You can provide custom Action to be performed with the button. Actions can be attached to Url, Flow and Node button types.
Call
Create a call button block.
Url
Create a url button block.
Note: We strongly suggest to use HTTPS protocol for your URLs
Url has 3 style options:
Buy
Create a buy button block.
You can configure the Buy button payment option check the code below.
Node
Create a node button block to link with existing flow.
Node name can be found in its header, you need to use unique name for node connected with link. If there are multiple nodes with similar names inside of the same flow, transition behaviour would not meet expectations.
Flow
Create a flow button block. Flow block are like Node block, but Flow uses id of a Node or Flow.
The id can be found in the address bar when you're editing the node/flow.
Example node/flow url:
Actions
You can attach actions to Chat, Message, Attachment or Button object.
There are only 2 type of actions Tag and Custom Field.
Note: The
$objectcan beChat,Message,AttachmentorButtonobject.
Add Tag
Add a tag to a subscriber
Remove Tag
Remove a tag from a subscriber
Add Custom Field
Add a custom field to a subscriber
Remove Custom Field
Remove a custom field from a subscriber
Quick Reply
Create a quick reply block. Quick Reply can only be attached to Chat object.
The Node, Flow buttons and DynamicBlock callback can be used with Quick Reply block.
Dynamic Block
Create a Dynamic Block callback.
Note: We strongly suggest to use HTTPS protocol for your URLs
External Callback
You can ask ManyChat to handle the next subscriber’s message on your side by using the ExternalCallback block.
Note: Only one callback can be attached to
Chatobject.
Trademark
Logos, service marks and trade names are trademark of ManyChat, Inc.
License
This package is an Unofficial SDK licensed under the MIT