To build your ordering tool in Botpress where customers can input orders in natural language and you can extract product codes and quantities to insert into a table, follow these steps:
1.
Store Product Catalog in a Table: First, ensure your product catalog, including product codes (SKU) and synonyms for each product, is stored in a Botpress table. This will facilitate the mapping of customer inputs to your product codes.
2.
Use [
Raw Capture Card](
https://botpress.com/docs/cloud/toolbox/capture-information/)**:** Utilize the Raw Capture card to extract the entire customer order input. This card captures the raw text input from the user and stores it in a variable, allowing you to process this data in the next stepsāā.
3.
Find [
Table Records](
https://botpress.com/docs/cloud/toolbox/table-actions/)**:** Employ the "Find Records" action within the Table cards to search and extract the top products that match the user's input. This step can help narrow down the potential products that the customer is referring to, based on the synonyms and product names in your catalogāā.