# Action Input Error

**URL:** <https://community.crewai.com/t/action-input-error/1249>\
**Category:** CrewAI Community Support\
**Created:** [November 6, 2024, 4:10am UTC](https://community.crewai.com/t/action-input-error/1249 "2024-11-06T04:10:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Baruch\_Bashan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/baruch_bashan/32/542_2.png) [@Baruch\_Bashan](https://community.crewai.com/u/Baruch_Bashan)\
**Post date:** [November 6, 2024, 4:10am UTC](https://community.crewai.com/t/action-input-error/1249/1 "2024-11-06T04:10:37Z")

</div>

In my Searcher Agent, I’m setting: tools=[searchTool],  
searchTool = SerperDevTool( api\_key=srprKey, n\_results=numRet )

Anyone have an idea why I’m getting the following error:

## Tool Output:

Error: the Action Input is not a valid key, value dictionary.

# Agent: Senior Web Searcher

## Task: Perform a web search about “AI for Sustainable Development Goals” to find relevant URLs.

# Agent: Senior Web Searcher

## Using tool: Search the internet

## Tool Input:

“{"name": "AI for Sustainable Development Goals", "description": "", "args\_schema": {}, "return\_direct": false, "verbose": true, "callbacks": "None", "callback\_manager": "None", "tags": ["funding", "grant"], "metadata": {"search\_query": "AI for Sustainable Development Goals"}, "handle\_tool\_error": false, "handle\_validation\_error": false, "response\_format": "content\_and\_artifact", "func": "None", "coroutine": "None"}”

## Tool Output:

Error: the Action Input is not a valid key, value dictionary.

---

<div class="post-metadata">

**Author:** ![YOGESH\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/yogesh_s/32/999_2.png) [@YOGESH\_S](https://community.crewai.com/u/YOGESH_S)\
**Post date:** [November 13, 2024, 6:37am UTC](https://community.crewai.com/t/action-input-error/1249/2 "2024-11-13T06:37:16Z")

</div>

I am also faced the same issue bro.

This is how I resolved the issue:  
Change the prompt (goal,backstory,description, .etc)

Instruct the agent how the output should be like giving an example of the output.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![Baruch\_Bashan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/baruch_bashan/32/542_2.png) [@Baruch\_Bashan](https://community.crewai.com/u/Baruch_Bashan)\
**Post date:** [November 13, 2024, 7:36am UTC](https://community.crewai.com/t/action-input-error/1249/3 "2024-11-13T07:36:41Z")

</div>

Ah, good suggestions. I will give them a try. Thank you!  
Baruch

---

<div class="post-metadata">

**Author:** ![YOGESH\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/yogesh_s/32/999_2.png) [@YOGESH\_S](https://community.crewai.com/u/YOGESH_S)\
**Post date:** [November 15, 2024, 9:51am UTC](https://community.crewai.com/t/action-input-error/1249/4 "2024-11-15T09:51:56Z")

</div>

And one more thing is try to use the best model.  
Sometimes you may need a better model for the crew ai agents.

---

<div class="post-metadata">

**Author:** ![Baruch\_Bashan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/baruch_bashan/32/542_2.png) [@Baruch\_Bashan](https://community.crewai.com/u/Baruch_Bashan)\
**Post date:** [November 16, 2024, 12:45am UTC](https://community.crewai.com/t/action-input-error/1249/5 "2024-11-16T00:45:42Z")

</div>

Thank you! I have a few on my computer, and will document test results with each.  
Baruch
