Query about a payment
Example workflow to search for payment details from a Supabase table, and summarize the results in English.
Install Recase
Install Recase in your project by running the following command:
A workflow.ts
file will be created in your project. This is where we’ll write our workflow.
Defining inputs
Inputs are the fields that are required to run your workflow. In this case, we’ll need:
- A payment ID
- A query to answer about the payment
Building the workflow
Now we’ll write our script to get the payment details from Supabase and answer the query.
Deploying
To deploy our workflow, we’ll use the recase deploy
command in your terminal.
You can create and deploy multiple workflow files in your project.
Running your workflow
Workflows can be run via the Recase UI, via API or invoked via natural language on Slack. Here we’ll connect to Slack and run the workflow from there.
Connect to Slack
Go to your Recase dashboard and click “Connect to Slack”. Follow the prompts to authorize Recase in your workspace.
Run workflow with slash command
In any Slack channel, type /rc
followed by your request. Recase will search for a matching workflow and execute it. For example:
/rc why was payment_239478239 declined?
View workflow results
Recase will confirm the workflow has started. View the workflow logs in the Recase Dashboard, and the issue in Linear.
Questions? Chat to us about anything at founders@recaseai.com 😄