Icon

3. propose_​alternative

<p><strong>Tool name:</strong> alternative_booking</p><p><strong>Description:</strong><br>This tool suggests alternative booking options if the "table_availability" fails with this message "No tables are available for the required date". </p><p>It accepts two parameters:</p><ul><li><p><strong>number_people</strong>: The number of seats requested.</p></li><li><p><strong>booking_date</strong>: The requested reservation date.</p></li></ul><p>The tool checks for availability within the following 2 days and proposes the first available option that matches the request. If no suitable alternative is found, a message is returned indicating that no options are currently available.</p>

Tool name: alternative_booking

Description:
This tool suggests alternative booking options if the "table_availability" fails with this message "No tables are available for the required date".

It accepts two parameters:

  • number_people: The number of seats requested.

  • booking_date: The requested reservation date.

The tool checks for availability within the following 2 days and proposes the first available option that matches the request. If no suitable alternative is found, a message is returned indicating that no options are currently available.

Propose Alternative Date



Parameters

Table is available







Table is not available

restaurant_hours.csv
CSV Reader
date of reservation
Date&Time Configuration
Merge Variables
number of seats
Integer Configuration
Filter by: - seats - date - availability
Row Filter
Is table available?
Empty Table Switch
Concatenate
Create output message
Table Creator
Create output message
Expression
add 1 day to initial request
+ 1 day
End IF
Keep only message
Column Filter
Keep one option
Top k Row Filter
Keep only message
Column Filter
Tool Message Output

Nodes

Extensions

Links