Script.It Documentations
  • 🌟Introduction
  • 🧠Concepts
  • πŸ› οΈTools
    • ❓TextAI
    • πŸ“”DataOps
    • πŸ“–DocQA
    • πŸ“‘WebAgent
    • πŸ—„οΈFile Explorer
    • πŸ“„DocSum
    • ❔WebQA
    • πŸ•ΈοΈWebOps
    • ℹ️Inputs
    • πŸ€–BrowserAgent
    • 🈺Business Reviews
    • πŸ“°News Search
    • πŸ“‚Upload Files
    • πŸ“ˆImport Data
    • πŸ“ŠPlotting
    • 🌐WebData
    • 🌎WebQA
    • 🌍WebOps
    • πŸ”Google Search
  • ⛓️APIs
    • πŸ’¬Slack
    • πŸ—ƒοΈNotion
    • πŸŒ†Image Generation
    • πŸ—³οΈAirtable
    • πŸ“…Google Calendar
    • πŸ“„Google Docs
    • πŸ“ΆGoogle Sheets
    • πŸ’ Google Slides
    • ☁️Google Drive
    • πŸ”ŠText-to-Speech
    • πŸŽ’eBay Search
    • πŸ“§Gmail
    • βœ–οΈX
    • 🏨CrunchBase
    • πŸ—„οΈSec Filing Retrieval
    • πŸ“ΉVideo Understanding
    • πŸ—£οΈWhisper
    • πŸ”˜Twilio
  • πŸ‘©β€πŸ«Tutorials
    • Creating a Basic Workflow
    • The 2 Run Types
    • The Execution Flow Mode
  • ☝️Tips and Tricks
  • πŸ“šSample Scripts
  • ▢️Use Cases
    • πŸ’΅Sales Prospecting
      • πŸ“ Account Names to Facility Match using PeeringDB
      • πŸ“ [Long list] Account Names to Facility Match using PeeringDB
Powered by GitBook
On this page
  • Handle API throttling problem
  • JSON error message

Tips and Tricks

Handle API throttling problem

Some APIs might moderate the rate at which we can query them. In this case adding the following prompts to the query should help. The exact sleep time will depend on the API.

Sleep 3s between requests.

JSON error message

If the output has the following error message:

raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not list

then adding the following prompt to the query might help:

Do not JSON load the input
PreviousThe Execution Flow ModeNextSample Scripts

Last updated 1 year ago

☝️