# Poke Agent

Here's a thread that sends a `|hi` to a ship via the `%hood` agent:

{% code title="/ted/send-hi.hoon" lineNumbers="true" %}

```hoon
/+  *strandio
|=  arg=vase
=/  m  (strand:rand ,vase)
=/  uarg  !<  (unit @p)  arg
?~  uarg
  (strand-fail:rand %no-arg ~)
=/  =ship  u.uarg
^-  form:m
;<  our=@p   bind:m  get-our
;<  now=@da  bind:m  get-time
;<  ~        bind:m  (poke [our %hood] helm-send-hi+!>([ship ~]))
(pure:m !>(~))
```

{% endcode %}

Save it in `/ted` of the `%base` desk, `|commit %base`, and run it like:

```
-send-hi ~zod
```

### Analysis <a href="#analysis" id="analysis"></a>

Pretty simple, just use `+poke` with an argument of `[ship term] cage` where `$term` is the agent and `$cage` is whatever the particular agent expects.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.urbit.org/urbit-os/base/threads/examples/poke-agent.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
