How to use the Picqer Action template

This article will guide you through using the Picqer Action template.

By using this template, you can seamlessly connect to your Picqer account to retrieve order status information, either by fetching a list of all orders or retrieving a single order by its ID. The template is prefilled with essential information, allowing you to automate conversations with your customers effectively. However, you will need to fill out some specific details to connect to your Picqer account.

Using the Picqer Action Template

Step 1: Access the template

In your chatbot in Pulse, navigate to Actions. Here, you can find and select the Picqer template. This template includes prefilled information necessary for retrieving order information from your Picqer database.

Step 2: Fill in the required fields

  • Base URL: Enter the base URL for your Picqer API. This is the endpoint where the action will send requests to retrieve order information.
    You can find the Base URL by following these steps:
    1. Log in to your Picqer admin panel.
    2. Here, you will find the Base URL. The format typically looks like this:
https://example.picqer.com/api/v1/
  • Authentication: The Picqer API requires Basic Authentication using a username and password. Fill out these credentials. These can be found in Picqer, by navigating to API Keys and creating one. 
  • Health Check URL and Instruction:
      • Health Check URL: Define a health check URL to monitor the status of the external server. This URL checks if the server is online.
        The Health Check URL is similar to the BaseURL and can be constructed by appending the health check endpoint to your base URL. Example of a Health Check URL: https://example.com/api/v1/health_check
      • Health Check Instruction: Add an instruction for the chatbot to follow if the server is not online. For example, you can instruct the chatbot to respond with: "Sorry, something went wrong on our end. Can I assist you with anything else?"

Note: Ensure that the health check is not secured, otherwise the action cannot access it. This ensures that at Monta you cannot check if the API is still running or if it has, for example, timed out.

Step 3: Update the Schema

The template already has a filled-in schema, so you can use it right away. If you want, you can change the schema to fit other purposes.


Step 4: Validating your Action

After filling in the required details and schema:

  1. Validate: Click the "Validate" button to check for any errors in your schema. Correct any issues that are identified.
  2. Available Actions: Once validated, the available actions will be displayed.

 

You can use this article to help you save, publish and unpublish the action and test and use the action.