def handler(pd):
# Extract the URL of the current event
event_url = pd[“steps”][“event”][“url”]
# Parse the event URL to extract the "word" parameter
from urllib.parse import urlparse, parse_qs
parsed_url = urlparse(event_url)
query_params = parse_qs(parsed_url.query)
word_value = query_params.get("word", [None])[0]
# Use the value of "word" in another step
# ...
print(f"The value of 'word' is {word_value}")