2. ๐Ÿง  Parameter Extraction

Once the intent is identified, the LLM extracts all structured parameters necessary to fulfill the command.

Example:

"Create an ERC20 token named EcoToken with symbol ECO and total supply 10 million."

The bot extracts:

  • name = "EcoToken"

  • symbol = "ECO"

  • total_supply = 10000000

  • decimals = 18 (defaulted)

Token Transfer Example:

"Send 50 GDC to 0xabc123..."

The bot extracts:

  • token_symbol = "GDC"

  • amount = 50

  • recipient_address = "0xabc123..."

It also:

  • Handles unit conversions (million, billion)

  • Maps synonyms (e.g., โ€œsupplyโ€, โ€œmint amountโ€, โ€œtotal tokensโ€)

  • Flags ambiguous or missing parameters and prompts the user

Last updated