Remember to always press RETURN after typing a new keyword. If you select "Tag" as the Appearance configuration for your keywords, Program Your Bot #Īdd the following to you bot's plugins.js file:īe careful when editing the keywords in. The plugin also provides a library to convert the markdown text into WhatsApp's specific markup format, the latter only supporting bold and italic formatting at the moment. The Contentful plugin provides functions to parse and transform the markdown formatting if further customization needs to be processed by the bot. While entering data through the Contentful dashboard visual editor, the user automatically generates markdown text. Referenced contents will be delivered in the same locale as the referring content. The plugin will deliver them as defined for the locale's fallback locale. a list of Button's) are not defined for a given locale, You will see now that you can assign multiple values for the fields that can be internationalized (as defined at your content model). It's recommended to define fallback locales, in case that any content lacks the translation text for some reason.įrom the content edit page, click on "Change" at the translation section to enable the required languages. To internationalize your bot, first define the list of required languages at the Settings|Locales menu of you Contentful space.
![contentful json editor contentful json editor](https://i.ytimg.com/vi/zxbXAZe4Vps/maxresdefault.jpg)
This can be used to ask the user to rate the bot, to display again the main carousel. This feature is used to automatically display a second message after a timeout. In the case of Text's, you can also define Follow Up contents.
![contentful json editor contentful json editor](https://selecttransform.github.io/site/src/jsonql2.png)
In two cases you should assign a Button target.
![contentful json editor contentful json editor](https://i.imgur.com/RkmNaes.png)
If you assign a URL, the browser will open it when the button is pressed.\ may be _startUp, text or carousel, whereas \ will be the ID of the target. When the button is pressed, it will send your bot a payload with value "\\$\". If you assign a StartUp, Text or Carousel, the button text will be automatically assigned to the Short Text field of the target content.The content buttons may trigger different behaviours depending on the type of its target field: Remember that they will not be available until you press the "publish" button and the button becomes green. Open the "Contents section" and create the contents required by your bot.Note you will need to ensure your contentful locales are changed from en-US to en Use # Define Your Contents # Publishing Contents #
#CONTENTFUL JSON EDITOR INSTALL#
Install the plugin in your bot's project by running :Ĭontentful space import - space - id =.Create a Content Management token and click on Generate personal token to safely store its value (it grants write access to your account).Create a Delivery API token and safely store its value (it grants read access to your account).Go to the General Settings page and write down the space ID number.Create an account at and select Create an empty space.Any kind of files uploaded to your Contentful account.Schedules with configurable timing per week day, as well as exception for bank holidays or sales periods.Information about Botonic desk queues, such as its name and schedule.įor the previous content, the dashboard allows assigning a list of tags to your contents, so that your bot can query them by a given tag value.Images, which optionally can be assigned to different assets depending on the user language.To trigger other botonic components as well as opening external URLs. Combinations of the following Botonic UI components: Start up messages, Carousels and Texts.
#CONTENTFUL JSON EDITOR DOWNLOAD#
![contentful json editor contentful json editor](https://leward.eu/assets/2020-12-12-json-editor-with-richtextfx-part-2/success.png)