Procedure

  1. Creating a new tool

    1. Open your agent and open up the tool menu. E.g., “Tools & Abilities”, “Custom Tools”

      image.png

    2. Create a tool

      image.png

  2. Configure tool:

    1. Confirm the Tool Description and Arguments match.

    2. Title / Tool Name: address_autocomplete_area

    3. Example Tool Description:

      After user provides an address, use this tool to confirm the address can be found online.

      #Approved areas: XXXXXXXXXXXXXX -Ignore all addresses not in the approved areas. Do not include ignored addresses in confirmations.

      #Confirmations: -If 0 addresses are returned, let the user know. Ask to try again -If 1 address is returned, without changes, confirm address -If 1 address is returned, but with changes, confirm the if the address is correct. -If >1 address is returned, ask for detail to help you confirm an address.

      Optional: You can instead use Address Autocomplete by Region.

    4. Confirm Request URL set to POST: https://api.app-x.co/google/addressValidation

      1. Set the parameters:
        • Text / JSON
        • Image / Form
  3. Save the tool

  4. Make sure the tool is active or added to the agent.

    image.png

  5. Save or Publish the agent

    1. Test: Use a method (call/text/chat) and ask to get availability for that calendar
    2. Done ✅ - Make sure to add any other endpoints you need for this flow (e.g., “Create Property or Job”.

Response Codes

N/a