{"id":4429,"date":"2023-06-05T08:43:03","date_gmt":"2023-06-05T08:43:03","guid":{"rendered":"https:\/\/convoworks.com\/docs\/packages\/forms-package\/"},"modified":"2023-07-19T08:15:05","modified_gmt":"2023-07-19T08:15:05","slug":"forms-package","status":"publish","type":"docs","link":"https:\/\/convoworks.com\/docs\/packages\/forms-package\/","title":{"rendered":"Forms Package"},"content":{"rendered":"<p>Today we are highlighting the Forms package for Convoworks. This powerful tool enables users to manage form entries within the <a href=\"https:\/\/github.com\/zef-dev\/convoworks-core\">Convoworks framework<\/a>. The Forms package provides a way to design conversational workflows that manage form data. It&#39;s not tied to any specific form plugin, giving you the flexibility to adapt it to your specific needs. If you&#39;re interested in the deeper details, you can explore them in the <a href=\"https:\/\/github.com\/zef-dev\/convoworks-pckg-forms\">GitHub repository<\/a>. <\/p>\n<h2 id=\"what-is-the-forms-package-\">What is the Forms Package?<\/h2>\n<p>At its heart, the Forms package is about bridging the gap between conversational workflows and the actual form plugin you use. It allows you to leverage voice and conversational design in your workflows, with components tailored specifically for these interactions.<\/p>\n<p>Key to this is the <code>IFormsContext<\/code> interface. By implementing this interface, you can connect your form system, such as the WordPress Formidable Forms plugin, to Convoworks, making it possible to use these two powerful tools together. <\/p>\n<p>Here&#39;s a simple example of how you might start your implementation:<\/p>\n<pre><code class=\"lang-php\"><span class=\"hljs-class\"><span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title\">MyCustomFormsContext<\/span> <span class=\"hljs-keyword\">extends<\/span> <span class=\"hljs-title\">AbstractBasicComponent<\/span> <span class=\"hljs-title\">implements<\/span> <span class=\"hljs-title\">IFormsContext<\/span>, <span class=\"hljs-title\">IServiceContext<\/span><\/span>\r\n{\r\n\r\n}\r\n<\/code><\/pre>\n<p>You can find more about <a href=\"https:\/\/convoworks.com\/docs\/developers\/develop-custom-packages\/\">developing custom packages<\/a> on the Convoworks documentation.<\/p>\n<h2 id=\"key-features-of-the-forms-package\">Key Features of the Forms Package<\/h2>\n<p>The Forms package provides a series of workflow elements to handle different form-related tasks. These include <code>CreateEntryElement<\/code> to create a new form entry, <code>UpdateEntryElement<\/code> to update an existing entry, <code>DeleteEntryElement<\/code> to delete an entry, <code>LoadEntryElement<\/code> to load an existing entry, and <code>SearchEntryElement<\/code> to search entries by a given parameter.<\/p>\n<p>These workflow elements have the <code>context_id<\/code> property, which links them to the context implementing the <code>IFormsContext<\/code> interface. This way, the real business logic is delegated to the concrete implementation while the elements focus on conversational workflow needs.<\/p>\n<p>You might be wondering about real-world applications of the Forms package. One powerful use case is creating your own Alexa skill with WordPress and Formidable Forms. You can see how this works in our blog post <a href=\"https:\/\/convoworks.com\/create-your-own-alexa-skill-with-wordpress-and-formidable-forms\/\">here<\/a>. Remember, while this example uses Alexa, the Forms package can also be used with web chat, Viber, Facebook Messenger, or even through the WordPress Hooks package in Convoworks.<\/p>\n<p>In sum, the Forms package is a versatile tool that can add a new level of functionality to your Convoworks workflows. Whether you&#39;re creating form entries, updating them, or loading them for use in a workflow, the Forms package can handle it &#8211; all within the Convoworks GUI.<\/p>\n","protected":false},"featured_media":0,"parent":139,"menu_order":6,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Forms Package - Convoworks Documentation<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/convoworks.com\/docs\/packages\/forms-package\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Forms Package - Convoworks Documentation\" \/>\n<meta property=\"og:description\" content=\"Today we are highlighting the Forms package for Convoworks. This powerful tool enables users to manage form entries within...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/convoworks.com\/docs\/packages\/forms-package\/\" \/>\n<meta property=\"og:site_name\" content=\"Convoworks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ConvoworksFramework\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-19T08:15:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/convoworks.com\/wp-content\/uploads\/2021\/01\/Convoworks-SEO-image.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"335\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@Convoworks\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/convoworks.com\/#organization\",\"name\":\"Convoworks\",\"url\":\"https:\/\/convoworks.com\/\",\"sameAs\":[\"https:\/\/www.facebook.com\/ConvoworksFramework\",\"https:\/\/www.linkedin.com\/company\/convoworks\/\",\"https:\/\/www.youtube.com\/channel\/UCqxDQQJjF7bdE0RbgPP4WYA\",\"https:\/\/twitter.com\/Convoworks\"],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/convoworks.com\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/convoworks.com\/wp-content\/uploads\/2020\/09\/Convoworks_color_RGB.png\",\"contentUrl\":\"https:\/\/convoworks.com\/wp-content\/uploads\/2020\/09\/Convoworks_color_RGB.png\",\"width\":1000,\"height\":150,\"caption\":\"Convoworks\"},\"image\":{\"@id\":\"https:\/\/convoworks.com\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/convoworks.com\/#website\",\"url\":\"https:\/\/convoworks.com\/\",\"name\":\"Convoworks\",\"description\":\"The Ultimate No-Code Powerhouse for WordPress!\",\"publisher\":{\"@id\":\"https:\/\/convoworks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/convoworks.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/convoworks.com\/docs\/packages\/forms-package\/#webpage\",\"url\":\"https:\/\/convoworks.com\/docs\/packages\/forms-package\/\",\"name\":\"Forms Package - Convoworks Documentation\",\"isPartOf\":{\"@id\":\"https:\/\/convoworks.com\/#website\"},\"datePublished\":\"2023-06-05T08:43:03+00:00\",\"dateModified\":\"2023-07-19T08:15:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/convoworks.com\/docs\/packages\/forms-package\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/convoworks.com\/docs\/packages\/forms-package\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/convoworks.com\/docs\/packages\/forms-package\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/convoworks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Packages\",\"item\":\"https:\/\/convoworks.com\/docs\/packages\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Forms Package\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Forms Package - Convoworks Documentation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/convoworks.com\/docs\/packages\/forms-package\/","og_locale":"en_US","og_type":"article","og_title":"Forms Package - Convoworks Documentation","og_description":"Today we are highlighting the Forms package for Convoworks. This powerful tool enables users to manage form entries within...","og_url":"https:\/\/convoworks.com\/docs\/packages\/forms-package\/","og_site_name":"Convoworks","article_publisher":"https:\/\/www.facebook.com\/ConvoworksFramework","article_modified_time":"2023-07-19T08:15:05+00:00","og_image":[{"width":600,"height":335,"url":"https:\/\/convoworks.com\/wp-content\/uploads\/2021\/01\/Convoworks-SEO-image.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_site":"@Convoworks","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/convoworks.com\/#organization","name":"Convoworks","url":"https:\/\/convoworks.com\/","sameAs":["https:\/\/www.facebook.com\/ConvoworksFramework","https:\/\/www.linkedin.com\/company\/convoworks\/","https:\/\/www.youtube.com\/channel\/UCqxDQQJjF7bdE0RbgPP4WYA","https:\/\/twitter.com\/Convoworks"],"logo":{"@type":"ImageObject","@id":"https:\/\/convoworks.com\/#logo","inLanguage":"en-US","url":"https:\/\/convoworks.com\/wp-content\/uploads\/2020\/09\/Convoworks_color_RGB.png","contentUrl":"https:\/\/convoworks.com\/wp-content\/uploads\/2020\/09\/Convoworks_color_RGB.png","width":1000,"height":150,"caption":"Convoworks"},"image":{"@id":"https:\/\/convoworks.com\/#logo"}},{"@type":"WebSite","@id":"https:\/\/convoworks.com\/#website","url":"https:\/\/convoworks.com\/","name":"Convoworks","description":"The Ultimate No-Code Powerhouse for WordPress!","publisher":{"@id":"https:\/\/convoworks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/convoworks.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/convoworks.com\/docs\/packages\/forms-package\/#webpage","url":"https:\/\/convoworks.com\/docs\/packages\/forms-package\/","name":"Forms Package - Convoworks Documentation","isPartOf":{"@id":"https:\/\/convoworks.com\/#website"},"datePublished":"2023-06-05T08:43:03+00:00","dateModified":"2023-07-19T08:15:05+00:00","breadcrumb":{"@id":"https:\/\/convoworks.com\/docs\/packages\/forms-package\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/convoworks.com\/docs\/packages\/forms-package\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/convoworks.com\/docs\/packages\/forms-package\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/convoworks.com\/"},{"@type":"ListItem","position":2,"name":"Packages","item":"https:\/\/convoworks.com\/docs\/packages\/"},{"@type":"ListItem","position":3,"name":"Forms Package"}]}]}},"_links":{"self":[{"href":"https:\/\/convoworks.com\/wp-json\/wp\/v2\/docs\/4429"}],"collection":[{"href":"https:\/\/convoworks.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/convoworks.com\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/convoworks.com\/wp-json\/wp\/v2\/comments?post=4429"}],"version-history":[{"count":2,"href":"https:\/\/convoworks.com\/wp-json\/wp\/v2\/docs\/4429\/revisions"}],"predecessor-version":[{"id":4431,"href":"https:\/\/convoworks.com\/wp-json\/wp\/v2\/docs\/4429\/revisions\/4431"}],"up":[{"embeddable":true,"href":"https:\/\/convoworks.com\/wp-json\/wp\/v2\/docs\/139"}],"next":[{"title":"GPT Package","link":"https:\/\/convoworks.com\/docs\/packages\/gpt-package\/","href":"https:\/\/convoworks.com\/wp-json\/wp\/v2\/docs\/4423"}],"prev":[{"title":"Appointments Package","link":"https:\/\/convoworks.com\/docs\/packages\/appointments-package\/","href":"https:\/\/convoworks.com\/wp-json\/wp\/v2\/docs\/4426"}],"wp:attachment":[{"href":"https:\/\/convoworks.com\/wp-json\/wp\/v2\/media?parent=4429"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/convoworks.com\/wp-json\/wp\/v2\/doc_tag?post=4429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}